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
  • 3 years ago
  • 1 hour ago
  • 6 years ago

Installs

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

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