Mac OSx sublime text3设置BracketHighlighter高亮

2017-09-23 14:05:41来源:http://banu.blog.163.com/blog/static/2314648201782244440581作者:入海数沙人点击

分享

参考:http://www.cnblogs.com/liu-l/p/3866458.html


http://www.cnblogs.com/feiying100/p/6899214.html


1、Ctrl+Shift+P面板,安装插件BracketHighlighter


2、按preferences–>package settings–>Bracket highlighter–>把Bracket settings-Default内容复制到Bracket settings-User后,找到“bracket_styles”,大概在640行, 把{}中屏蔽的//都去掉 ,在这里解释一下,color表示的设置选中部分的颜色,把该值改为 以brackethighlighter开头 , style则全部改成hightlight ,注意, "icon":“”后面的逗号一定加上!


改好后,如下图:



对应的关系:


{} - curly


() - round


[] - square


<> - angle


“” ‘’ - quote


3、查看配色方案,比如:Mariana,记住这个配色,然后在sublime安装目录下找到Packages目录User/Color Hghighter/themes,再找到文件:Monokai.tmTheme,编辑此文件内容,和里面的dic标签并列排即可:





<dict>
<key>name</key>
<string>Bracket Default</string>
<key>scope</key>
<string>brackethighlighter.default</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#4B4B4B</string>
<key>background</key>
<string>#A6E22E</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Bracket Unmatched</string>
<key>scope</key>
<string>brackethighlighter.unmatched</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#4B4B4B</string>
<key>background</key>
<string>#A6E22E</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Bracket Curly</string>
<key>scope</key>
<string>brackethighlighter.curly</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#4B4B4B</string>
<key>background</key>
<string>#A6E22E</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Bracket Round</string>
<key>scope</key>
<string>brackethighlighter.round</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#4B4B4B</string>
<key>background</key>
<string>#A6E22E</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Bracket Square</string>
<key>scope</key>
<string>brackethighlighter.square</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#4B4B4B</string>
<key>background</key>
<string>#A6E22E</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Bracket Angle</string>
<key>scope</key>
<string>brackethighlighter.angle</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#4B4B4B</string>
<key>background</key>
<string>#A6E22E</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Bracket Tag</string>
<key>scope</key>
<string>brackethighlighter.tag</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#4B4B4B</string>
<key>background</key>
<string>#A6E22E</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Bracket Quote</string>
<key>scope</key>
<string>brackethighlighter.quote</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#4B4B4B</string>
<key>background</key>
<string>#A6E22E</string>
</dict>
</dict>



修改前最好备份。


最新文章

123

最新摄影

闪念基因

微信扫一扫

第七城市微信公众平台