A Sublime Text 2 and 3 plugin for highlighting mutiple words in different colors
The following configuration options are available:
Sublime Text 3
(https://www.sublimetext.com/3)Tools -> Install Package Control
, then,
wait few seconds until the installation finishes upPreferences -> Package Control
Add Channel
on the opened quick panel and press Enterhttps://raw.githubusercontent.com/evandrocoan/StudioChannel/master/channel.json
Tools -> Command Palette... (Ctrl+Shift+P)
Preferences: Package Control Settings – User
on the opened quick panel and press EnterPackage Control.sublime-settings
file:
"channels":
[
"https://packagecontrol.io/channel_v3.json",
"https://raw.githubusercontent.com/evandrocoan/StudioChannel/master/channel.json",
],
https://raw.githubusercontent...
line as first:
"channels":
[
"https://raw.githubusercontent.com/evandrocoan/StudioChannel/master/channel.json",
"https://packagecontrol.io/channel_v3.json",
],
https://raw.githubusercontent...
line must to be added before the https://packagecontrol.io...
one, otherwise,
you will not install this forked version of the package,
but the original available on the Package Control default channel https://packagecontrol.io...
Preferences -> Package Control
Install Package
on the opened quick panel and press EnterHighlightWords
and press EnterSee also:
/regex/
.
For example,
if you enter /(?: => )([^\s]+)/ word1
on the panel,
it will highlight all the words matched by the regex ([^\s]+)
plus the word1
.Note: These commands are also available in Command Panel with prefix "HighlightWords:"
Select the word that has colour you want to use
view.scope_name(view.sel()[0].begin())
and press ENTER
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
Please visit me if you have any question or suggestion at: http://weibo.com/seanliang