web-dev-qa-db-fra.com

Surligneur sublime sur support ne colorie pas

Pour moi, le plugin supérieur, le plug-in surligneur n'est pas colorant et soulignant les supports, mais simplement les souligner en blanc.

Voici un instantané:

Sublime BracketHighlighter only underlines doesn't highlight

Quelqu'un sait une solution?

17
bootkick

Modifiez votre ~/Library/Application Support/Sublime Text 2/Packages/BracketHighlighter/bh_core.sublime-settings

Et définir "Style" sur "Mettez en surbrillance" pour chaque type de support que vous souhaitez surbrillance. Voici un exemple pour les supports bouclés.

 // User defined region styles
 "curly": {
     "icon": "curly_bracket",
     "color": "entity.name.class",
     "style": "highlight"
 }
9
AGS

J'ai modifié mon exemple basé sur les commentaires de AGS - il inclut désormais quelques options de surligneur et les autres sont des lignes. Merci AGS et merci à l'affiche originale de la création de ce fil utile.


bh_core.sublime-réglages

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

quoi que ce soit_theme_file_you_use.tmthee

<!-- BEGIN Bracket Highlighter plugin color modifications -->

<dict>
    <key>name</key>
    <string>Unmatched</string>
    <key>scope</key>
    <string>brackethighlighter.unmatched</string>
    <key>settings</key>
    <dict>
        <key>foreground</key>
        <string>#FD971F</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>#FF0000</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>#0000FF</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>#800080</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>#AE81FF</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>#FD971F</string>
    </dict>
</dict>

<dict>
    <key>name</key>
    <string>Single Quote | Double Quote | Regex</string>
    <key>scope</key>
    <string>brackethighlighter.quote</string>
    <key>settings</key>
    <dict>
        <key>foreground</key>
        <string>#AE81FF</string>
    </dict>
</dict>

<!-- END Bracket Highlighter plugin color modifications -->
31
lawlist

Redémarrez sublime.

Je viens de passer 20 minutes à la chasser et à essayer tout ce qui précède, etc. J'ai enfin trouvé un commentaire ailleurs suggérant un redémarrage; Ce qui lui a fixé et m'a donné un bref instant suffisamment longtemps pour me glisser moi-même pendant qu'elle est rechargée.

5
Justin Maxwell