码迷,mamicode.com
首页 > 其他好文 > 详细

sublime text3下BracketHighlighter的配置方法

时间:2014-07-24 22:52:23      阅读:265      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   strong   文件   width   2014   

st3的配置方法和st2是有区别的,所以网上搜索到的方法大多不能用,我google之后总结了一下。

一、

1、在st3中按preferences-->package settings-->Bracket highlighter-->Bracket settings-Default打开配置文件。

2、将配置文件信息全选复制一份到Bracket settings-User。

3、在配置文件361行开始的"bracket_styles"中,将style改为hightlight(style有四种方式: solid、underline、outline、highlight,根据自己的习惯挑选一种)。

bubuko.com,布布扣

 

其中的color默认是brackethighlighter.default,显示为全白,若是改为entity.name.class,在Monokai主题下部分高亮为绿色。

4、将"bracket_styles"以下的样式类型全部去掉注释。

其中对应关系为:

{} - curly
() - round
[] - square
<> - angle
“” ” - quote

 5、在sublime的安装目录下的Packages文件夹下,找到Color Scheme - Default.sublime-package这个文件,复制一份重命名为Color Scheme – Default.sublime-package.zip,解压找到Monokai.tmTheme

bubuko.com,布布扣

解压出来,将配色代码添加到Monokai.tmTheme中。再把降修改完成的文件放回解压文件夹重新压缩为Color Scheme – Default.sublime-package.zip,在改名字Color Scheme – Default.sublime-package放回原来的位置就好了。

配色代码可以参考

<dict>
    <key>name</key>
    <string>Bracket Default</string>
    <key>scope</key>
    <string>brackethighlighter.default</string>
    <key>settings</key>
    <dict>
        <key>foreground</key>
        <string>#FFFFFF</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>#FFFFFF</string>
        <key>background</key>
        <string>#FF0000</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>#FF00FF</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>#E7FF04</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>#FE4800</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>#02F78E</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>#FFFFFF</string>
        <key>background</key>
        <string>#0080FF</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>#56FF00</string>
    </dict>
</dict>

 效果如下图:

bubuko.com,布布扣

 

参考博文:http://www.dbpoo.com/sublime-text3-brackethighlighter/

sublime text3下BracketHighlighter的配置方法,布布扣,bubuko.com

sublime text3下BracketHighlighter的配置方法

标签:style   blog   http   color   strong   文件   width   2014   

原文地址:http://www.cnblogs.com/liu-l/p/3866458.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!