seanliang / HighlightWords

A Sublime Text 2 & 3 plugin for highlighting mutiple words in different colors
https://github.com/seanliang/HighlightWords
58 stars 21 forks source link

Color picker #5

Open mrvkino opened 11 years ago

mrvkino commented 11 years ago

It would be nice to have the option to pick the color if we want.

alvolturbo commented 10 years ago

Yeah, it could be nice

liuhewei commented 10 years ago

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.

seanliang commented 10 years ago

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.

liuhewei commented 10 years ago

@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?

Enteleform commented 9 years ago

what ( name | scope ) does HighlightWords use from the theme file?

xacid commented 9 years ago

I suppose there are five colors currently. SCOPES = ['string', 'entity.name.class', 'variable.parameter', 'invalid.deprecated', 'invalid', 'support.function']

xacid commented 9 years ago

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?

laramjo commented 9 years ago

They could give me an example of how to change the color of the word to highlight

daidaiworm commented 7 years ago

I think quite a few of users need some example on # how to customize certain keywords' color#.