Sublime Forum

Comment color change

#1

I’ve asked this in a couple different ways, but I’ve killed both those previous attempts and am trying here to break my question down to its essence. Hopefully this is clear and what I’m after is doable:

I’m using the Markdown syntax that comes with ST. Comments within that syntax are html comments and look like this:

<!-- -->

I want to change the appearance of that comment–text color and background, if possible.

How can I do that?

0 Likes

#2

https://www.sublimetext.com/docs/color_schemes.html#customization

tldr; command palette -> UI: Customize Color Scheme

{
    "rules": [
        {
            "scope": "text.html.markdown comment, text.html.markdown punctuation.definition.comment",
            "foreground": "magenta",
            "background": "#123456"
        },
    ]
}

For valid color formats see https://www.sublimetext.com/docs/color_schemes.html#colors

For the scope name at the current cursor position use “Tools > Developer > Show Scope Name” from the main menu.

1 Like

#3

Excellent! Thanks a ton.

0 Likes