BracketHighlighter括号成对高亮色彩配置

BracketHighlighter插件能为Sublime Text提供括号,引号这类高亮功能,但安装此插件后,默认没有高亮,只有下划线表示,不是很醒目,需要配置:
1.   在Sublime Text中用package control安装BracketHighlighter;
2.   安装完成后,打开Preferences -> package settings -> Bracket Highlighter -> Bracket Settings – User,然后添加如下代码:

{
    "bracket_styles": {
        "default": {
            "icon": "dot",
            // "color": "entity.name.class",
            "color": "brackethighlighter.default",
            "style": "highlight"
        },

        "unmatched": {
            "icon": "question",
            "color": "brackethighlighter.unmatched",
            "style": "highlight"
        },
        "curly": {
            "icon": "curly_bracket",
            "color": "brackethighlighter.curly",
            "style": "highlight"
        },
        "round": {
            "icon": "round_bracket",
            "color": "brackethighlighter.round",
            "style": "highlight"
        },
        "square": {
            "icon": "square_bracket",
            "color": "brackethighlighter.square",
            "style": "highlight"
        },
        "angle": {
            "icon": "angle_bracket",
            "color": "brackethighlighter.angle",
            "style": "highlight"
        },
        "tag": {
            "icon": "tag",
            "color": "brackethighlighter.tag",
            "style": "highlight"
        },
        "single_quote": {
            "icon": "single_quote",
            "color": "brackethighlighter.quote",
            "style": "highlight"
        },
        "double_quote": {
            "icon": "double_quote",
            "color": "brackethighlighter.quote",
            "style": "highlight"
        },
        "regex": {
            "icon": "regex",
            "color": "brackethighlighter.quote",
            "style": "outline"
        }
    }

}

3.  找到Sublime text3安装目录下的Packages中的Color Scheme – Default.sublime-package

默认路径:C:\Program Files\Sublime Text 3\Packages\Color Scheme – Default.sublime-package

添加后缀名Color Scheme – Default.sublime-package.zip,解压找到Monokai.tmTheme(颜色主题),拉出来修改。

image

4.  Monokai.tmTheme中添加如下代码:,和里面的dic标签t并列排即可。


    name
    Bracket Default
    scope
    brackethighlighter.default
    settings
    
        foreground
        #FFFFFF
        background
        #A6E22E
    



    name
    Bracket Unmatched
    scope
    brackethighlighter.unmatched
    settings
    
        foreground
        #FFFFFF
        background
        #FF0000
    



    name
    Bracket Curly
    scope
    brackethighlighter.curly
    settings
    
        foreground
        #FF00FF
    



    name
    Bracket Round
    scope
    brackethighlighter.round
    settings
    
        foreground
        #E7FF04
    



    name
    Bracket Square
    scope
    brackethighlighter.square
    settings
    
        foreground
        #FE4800
    



    name
    Bracket Angle
    scope
    brackethighlighter.angle
    settings
    
        foreground
        #02F78E
    



    name
    Bracket Tag
    scope
    brackethighlighter.tag
    settings
    
        foreground
        #FFFFFF
        background
        #0080FF
    



    name
    Bracket Quote
    scope
    brackethighlighter.quote
    settings
    
        foreground
        #56FF00
    

5.  然后再降修改完成的文件放到压缩包Color Scheme – Default.sublime-package.zip里边,最后改名Color Scheme – Default.sublime-package放回C:\Program   Files\Sublime Text 3\Packages中;

你可能感兴趣的:(BracketHighlighter括号成对高亮色彩配置)