ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Highlight​Words

by seanliang ST2/ST3

A Sublime Text 2 & 3 plugin for highlighting mutiple words in different colors

Details

  • 2015.12.21.04.05.23
  • github.​com
  • github.​com
  • 2 years ago
  • 2 hours ago
  • 6 years ago

Installs

  • Total 14K
  • Win 8K
  • OS X 4K
  • Linux 2K
Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9
Windows 6 12 1 4 9 5 7 12 6 3 3 6 7 5 4 10 1 2 7 2 9 6 1 7 9 10 5 6 7 7 2 4 9 8 7 7 8 8 9 4 7 9 8 9 3 3
OS X 2 8 2 0 7 2 5 3 5 1 0 5 3 3 7 2 0 3 1 0 4 1 2 1 1 4 0 2 1 1 0 1 2 4 3 1 3 1 2 1 6 4 2 2 3 2
Linux 1 1 1 3 4 3 2 2 1 2 0 2 7 5 3 1 0 0 1 0 1 1 0 1 2 1 2 2 0 0 1 0 2 3 2 2 2 3 1 2 4 5 3 1 0 0

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

selection * 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:

highlight

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