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
  • 9 minutes ago
  • 6 years ago

Installs

  • Total 15K
  • Win 8K
  • OS X 4K
  • Linux 3K
Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6
Windows 6 8 7 8 7 1 4 4 6 7 6 5 0 1 7 7 11 11 2 3 2 7 7 9 6 7 1 0 8 4 5 12 5 2 2 5 9 9 12 8 1 3 3 8 17 11
OS X 1 0 6 5 2 1 1 3 2 3 7 1 2 1 2 4 3 4 2 0 2 2 2 1 1 4 1 1 0 5 1 3 3 1 0 2 5 3 2 1 2 0 2 1 3 3
Linux 0 2 2 3 2 0 2 4 1 5 1 0 4 1 4 2 2 3 3 3 4 1 2 3 3 4 0 1 1 5 1 2 5 0 2 0 8 1 6 2 0 0 1 0 3 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

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