Sublime Forum

[fixed] How to remove brackethighlighter plugin's underline

#1

By default BracketHighlighter plugin shows underline on the pair bracket or quote inside which the caret is situated. I want to remove it, so that it only shows the position of bracket’s in gutter. I read the default settings file and the documentation, but could not figure it out. I have already disabled sublime text’s match_brackets. I am using ST3 in Windows 8.1 core 64-bit.

0 Likes

#2

http://facelessuser.github.io/BracketHighlighter/customize/#configuring-highlight-style style parameter

1 Like

#3

Thanks. Actually, I used only the default part, not the whole bracket_styles block. That’s why it was not working properly. Now, it’s corrected.

0 Likes

#4

Estou respondendo essa mensagem para facilitar a vida das pessoas no futuro, inclusive a minha talvez :grin:

Para quem usa a build < 3148 são necessárias duas configurações para deixar a cor do igual a cor do sublinhado igual a cor do background do seu tema.

É necessário criar um arquivo chamado bh_core.sublime-settings na pasta Data\Packages\User com o seguinte código

// Define region highlight styles
{
    "user_bracket_styles": {
        "default": {
            "color": "brackethighlighter.default"
        },
        "unmatched": {
            "color": "brackethighlighter.unmatched"
        },
        "curly": {
            "color": "brackethighlighter.curly"
        },
        "round": {
            "color": "brackethighlighter.round"
        },
        "square": {
            "color": "brackethighlighter.square"
        },
        "angle": {
            "color": "brackethighlighter.angle"
        },
        "tag": {
            "color": "brackethighlighter.tag"
        },
        "c_define": {
            "color": "brackethighlighter.c_define"
        },
        "single_quote": {
            "color": "brackethighlighter.quote"
        },
        "double_quote": {
            "color": "brackethighlighter.quote"
        },
        "regex": {
            "color": "brackethighlighter.quote"
        }
    }
}

depois disso temos que editar o arquivo do thema que usamos alguma-coisa.tmTheme e adicionar o estilo personalizado para o BracketHighlighter

		<!-- Esta é uma configuração de cores para o BracketHighlighter -->
		<dict>
		    <key>name</key>
		    <string>Bracket Tag</string>
		    <key>scope</key>
		    <string>brackethighlighter.tag</string>
		    <key>settings</key>
		    <dict>
				<key>background</key>
				<string>#dedede</string>
				<key>foreground</key>
				<string>#555555</string>
		    </dict>
		</dict>
		<!-- A configuração de cores do BracketHighlighter vem até aqui -->

O background é a cor do sublinhado e a foreground a cor do ícone que fica perto do número das linhas

0 Likes