Sublime Forum

How to color underline of XML tags?

#1

After upgrading to 3.1.1 3176 selected XML tags now get a yellowish underline. What’s the scheme option to change the color of those?

0 Likes

#2

The screenshot looks like you are using BracketHighlighter? If so you might have a look into its documentation to learn about how to modify its highlighting styles.

By default it uses the scopes region.redish and friends. Their color is either part of the color-scheme or auto-generated by ST.

You have 2 options:

  1. modify the scope names according to BH’s doc to one with a color you like or
  2. modify the according rules of the color-scheme.

As ST3176 supports sublime-color-scheme format, you could such a file with the same name as the active one to your User package and add some overriding rules for redish, …

It could simply look like

# Windows %APPDATA%\Sublime Text 3\Packages\User\MyActiveColorscheme.sublime-color-scheme
# Linux/OSX: ~/.config/sublime-text-3/Packages/User/MyActiveColorscheme.sublime-color-scheme
{
    "rules": [
        {
            "scope": "region.redish",
            "foreground": "#FF0000",
        },
    ]
}
1 Like