Open mrvkino opened 11 years ago
Yeah, it could be nice
There is no settings for HighlightWords. There is better one for configuring colors, regex on/off, case-sensitive on/off, and something else. Better extensibility and flexibility since sublime text can configure for global, syntax, and project scopes.
HighlightWords will create the user settings file once you run the "Toggle Settings" command. You can also add the same entries in your project settings to override the user and default ones.
Users who want to pick the colors freely have to change the active theme file manually, which is not that easy. I will bring this up when I get a better idea.
@seanliang Yes, I found the 'HighlightWords.sublime-settings' under /User. Thanks.
BTW, I think it's better to add another configuration item, named like "match_whole_word" to the settings, which is used for matching only whole word rather than substrings. I currently use the regex for this type of highlight, but I think it's not convenient. For instance, when I want to highlight "Rate", only the whole word, I must input "\bRate\b" in the pane.
What do you think?
what ( name | scope ) does HighlightWords use from the theme file?
I suppose there are five colors currently. SCOPES = ['string', 'entity.name.class', 'variable.parameter', 'invalid.deprecated', 'invalid', 'support.function']
Hi, I just added an option 'colors_by_scope' in the settings. Please see the commit. https://github.com/xacid/HighlightWords/commit/e53ca49862220ab4e3f6af63afc7f986be404a14
BTW, I added the entry "ignore_case" (or other options) in my "Preferences.sublime-settings", but I can't modify the the option from. I suppose the function "sublime.load_settings('HighlightWords.sublime-settings')" only loads settings in that file?
They could give me an example of how to change the color of the word to highlight
I think quite a few of users need some example on # how to customize certain keywords' color#.
It would be nice to have the option to pick the color if we want.