sublimetext2 - Sublime Text 3 Highlighting Jquery Angular Syntax Issue -
after updating sublime text 2 sublime text 3, have experienced issues highlighting of variables in case of angular or jquery elements no longer having highlight of pink (using monokai theme; default)
has experienced issue or know way resolve this?
these variables have, normal javascript syntax, scope variable.other.dollar.js. scope variable , variable.other have no highlighting in monokai colorscheme. if want add highlighting on own, can modify colorscheme. recommend package resource viewer. press ctrl+shift+p , select packageresourceviewer: open resource , navigate monokai colorscheme. open colorscheme xml file. if save it, not change existing 1 (which read in zip folder), create in packages folder. colorscheme shadow existing one. add following entry @ reasonable position , variables should highlighted pink:
<dict> <key>name</key> <string>jquery variable</string> <key>scope</key> <string>variable.other.dollar.js</string> <key>settings</key> <dict> <key>foreground</key> <string>#ff90ff</string> </dict> </dict> in general can use scopehunter retrieve scope , adapt colorscheme fit requirements.

Comments
Post a Comment