How to change brackets to underline underline?

Now open and close brackets { }are highlighted as underscores_

I do not like it

But I can’t find if there is a way to change it to bold and / or background change, as in most other editors?

+4
source share
3 answers

Take a look at the BracketHighlighter plugin .

Edit Try this for yourPackages/User/bh_core.sublime-settings

{
    // Define region highlight styles
    "bracket_styles": {
        // "default" and "unmatched" styles are special
        // styles. If they are not defined here,
        // they will be generated internally with
        // internal defaults.

        // "default" style defines attributes that
        // will be used for any style that does not
        // explicitly define that attribute.  So if
        // a style does not define a color, it will
        // use the color from the "default" style.
        "default": {
            "icon": "dot",
            // BH1 original default color for reference
            // "color": "entity.name.class",
            "color": "brackethighlighter.default",
            "style": "underline"
        },

        // This particular style is used to highlight
        // unmatched bracekt pairs.  It is a special
        // style.
        "unmatched": {
            "icon": "question",
            // "color": "brackethighlighter.unmatched",
            "style": "outline"
        },
        // User defined region styles
        "curly": {
            "icon": "curly_bracket",
            // "color": "brackethighlighter.curly",
            "style": "full"
        },
        "round": {
            "icon": "round_bracket",
            // "color": "brackethighlighter.round",
            "style": "full"
        },
        "square": {
            "icon": "square_bracket",
            // "color": "brackethighlighter.square",
            "style": "full"
        },
        "angle": {
            "icon": "angle_bracket",
            // "color": "brackethighlighter.angle",
            "style": "full"
        },
        "tag": {
            "icon": "tag",
            // "color": "brackethighlighter.tag",
            "style": "outline"
        },
        "single_quote": {
            "icon": "single_quote",
            // "color": "brackethighlighter.quote",
            "style": "full"
        },
        "double_quote": {
            "icon": "double_quote",
            // "color": "brackethighlighter.quote",
            "style": "full"
        },
        "regex": {
            "icon": "regex",
            // "color": "brackethighlighter.quote",
            "style": "full"
        }
    }
}
+3
source

Just go "Sublime Text -> Preferences -> Package Settings -> Bracket Highlighter -> Bracket Setting - User".

Then paste the following configuration and click "Save." That should fix it.

{
    "bracket_styles": {
        "default": {
            "icon": "dot",
            "color": "brackethighlighter.default",
            "style": "none"
        },
        "unmatched": {
            "icon": "question",
            "style": "outline"
        },
        "curly": {
            "icon": "curly_bracket"
        },
        "round": {
            "icon": "round_bracket"
        },
        "square": {
            "icon": "square_bracket"
        },
        "angle": {
            "icon": "angle_bracket"
        },
        "tag": {
            "icon": "tag"
        },
        "c_define": {
            "icon": "hash"
        },
        "single_quote": {
            "icon": "single_quote"
        },
        "double_quote": {
            "icon": "double_quote"
        },
        "regex": {
            "icon": "regex"
        }
    }
}

ps I know this is an old question - this is for reference!

+1
source

Theme_of_choise.tmTheme . . : (

<key>bracketsForeground</key>
<string>#FF0000</string>
<key>bracketsOptions</key>
<string>foreground</string>

<key>bracketContentsForeground</key>
<string>#FF0000</string>
<key>bracketContentsOptions</key>
<string>foreground</string>
0
source

Source: https://habr.com/ru/post/1527848/


All Articles