Sublime Forum

Defining a link as a separate syntax zone?

#1

I’d like to color A tags and their attributes differently from other inline tags.

In other words <a href="http://google.com>Google</a>

How?

0 Likes

#2

Syntax highlighting is handled by the color scheme, which is a .tmTheme file. However, depending on how advanced you’d like to get, you may need to also modify the language parser, which is a .tmLanguage file. Have a look at Sublime’s syntax definitions or the more detailed/advanced Textmate’s language grammars.

0 Likes