HighlightWords
A Sublime Text 2 & 3 plugin for highlighting mutiple words in different colors
Details
Installs
- Total 27K
- Win 15K
- Mac 7K
- Linux 5K
Oct 9 | Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 2 | 2 | 0 | 2 | 3 | 0 | 1 | 3 | 2 | 4 | 2 | 2 | 1 | 3 | 2 | 1 | 2 | 1 | 1 | 0 | 2 | 4 | 2 | 2 | 4 | 2 | 1 | 4 | 1 | 1 | 1 | 1 | 1 | 3 | 4 | 0 | 0 | 1 | 2 | 1 | 2 | 1 | 0 | 5 | 1 | 1 |
Mac | 3 | 0 | 2 | 2 | 2 | 0 | 2 | 2 | 0 | 0 | 0 | 1 | 3 | 3 | 4 | 1 | 1 | 0 | 0 | 0 | 0 | 4 | 3 | 0 | 4 | 0 | 0 | 0 | 4 | 1 | 3 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 | 2 | 0 | 1 | 1 | 1 | 1 | 3 |
Linux | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 2 | 2 | 0 | 0 | 2 | 0 | 0 | 3 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 2 | 1 | 1 |
Readme
- Source
- raw.githubusercontent.com
HighlightWords
A Sublime Text 2 and 3 plugin for highlighting mutiple words in different colors
The following configuration options are available: * Regular Expression * Case Sensitive * Customize Highlight Colors * Define “Always Highlighted Keywords” with Customized Colors
Usage
- Highlight: Select “Edit > Highlight Words > Highlight Words” and enter the words (separated by whitespace)
- Unhighlight: Select “Edit > Highlight Words > Unhighlight Words”
- Toggle Settings: Select “Edit > Highlight Words > Toggle Settings”
- Edit settings file: Select “Preferences” > “Package Settings” > “HighlightWords”, copy settings from default to user, and edit settings file. Available settings are:
- “colors_by_scope”: Change the highlight colors.
- “permanent_highlight_keyword_color_mappings”: Define always highlighted keywords with specified colors, such as “TODO” or “FIXIT”. The optional “flag” parameter may be 0 (regex), 1 (literal), 2 (regex and ignore case) or 3 (literal and ignore case).
- Perl-style regular expression patterns are accepted. For example, to highlight “fix a bug” but not “prefix with”, the expression could be “\bfix .*\b”.
Note: These commands are also available in Command Panel with prefix “HighlightWords:”
How to find color scope
- Open the file that has some colour you want (e.g open C++ which have green strings)
- Select the word that has colour you want to use
* Open console (ctrl+~ (tilde))
* Paste
view.scope_name(view.sel()[0].begin())
and press ENTER
* Copy returned string, for mine selection it is source.c++ meta.function.c meta.block.c storage.type.c
* Paste this string inside color property:
Color will change after you re-enter the tab
Contact me
Please visit me if you have any question or suggestion at: http://weibo.com/seanliang