digitallyserviced / semanticolor

Provide Atom editor with semantic color highlighting.
https://atom.io/packages/semanticolor
MIT License
34 stars 3 forks source link

Need documentation of settings #18

Closed booch closed 7 years ago

booch commented 7 years ago

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 a entity.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.

sharedprophet commented 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:

I'll update the docs soon.

sharedprophet commented 7 years ago

Please get 3.5.0. There are now explanations of what scopes are meant for each setting.