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
  • 4 years ago
  • 3 hours ago
  • 7 years ago

Installs

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

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