Kronuz / ColorHighlight

🎨 Lightweight Color Highlight colorizer for Sublime Text
MIT License
118 stars 12 forks source link

Feature: Use the Color Scheme customisation option #14

Open mickimnet opened 5 years ago

mickimnet commented 5 years ago

Hello Germán,

first let me express my gratitude, that you picked up the old Color Highlighter plugin and extended it. Love it very much, especially the possibility to see colours in other filet types (e. g. Markdown).

I'm currently in the progress of rewriting my colour scheme and while I love to see the color values, it's kind of distracting to have the ColorHighlight additions written in my .sublime-color-scheme file, while I'm writing it … 😉

Sublime Text has a feature to "customize a color scheme by overriding variables or globals, and adding rules" by creating "a new file with the same filename as the color scheme, but" saving "it in the Packages/User/ directory". That way any original color scheme files stay the same as they are and your needed scopes & rules would be easy to use. (for more information see Sublime Texts Color Scheme Documentation).

Thanks for considering and take care Mick

Kronuz commented 5 years ago

This is interesting... instead of modifying the original, one can modify one file in Packages/User/? I'll try that to see how it works.

Do files in User Directory need to be always JSON or in the same type as the original?

If you can, please add a pull request... it may be some time before I can dig into this, I’ve been way too busy lately.

braver commented 5 years ago

Do files in User Directory need to be always JSON or in the same type as the original?

You can override/extend tmTheme color schemes using the new JSON format.