Closed booch closed 7 years ago
Place the cursor on a key and open the command palette (by default shift+ctrl+P
on Windows/Linux, shift+cmd+P
on Mac). Use the Editor: Log Cursor Scope
command to show what the scopes are at that cursor position. You can use that info to figure out how to set the settings like you want them.
The settings in semanticolor generally map to similarly-named scopes but some of them are not named exactly the same as the setting. For reference, they are:
variable
comment
primitive
storage.modifier
storage.type
support.type
language
keyword
operator
punctuation
markup
string.quoted
regexp
support.constant
constant.numeric
source
name
attribute-name
I'll update the docs soon.
Please get 3.5.0. There are now explanations of what scopes are meant for each setting.
I'm trying to tweak my Semanticolor settings. In particular, I'm wanting keys in YAML colorized, but not values. It's not clear how the settings (Primitives, Keywords, Language Elements, etc.) map to those in YAML. A pointer to where to find that would be appreciated.
Even looking at the source for
language-yaml
, I still don't see anything that maps to those names. I see that the left-hand side is aentity.name.tag.yaml
, but not idea where to find how that maps.I realize that this question will be mostly answered by resources external to Semanticolor. I'm just asking that some pointers be added to the documentation, so that using Semanticolor will be easier.