Sublime Forum

How to highlight User-Defined Classes and Functions

#1

I’m building an own *.tmTheme.
And i need to know - how to highlight my own user-defined classes and functions?
I know, here exactly <string>User-defined Class</string> for example suits for that, but… what should be defined in scope?

And why no info about tags or other stuff of *.tmTheme in ST2 documentation?

0 Likes

#2

For functions, the scope is:

entity.name.function

For classes:

entity.name.type.class

You can press ctrl+alt+shift+P and see current scope (in status bar)

0 Likes

#3

Woah, super cool trick! That would have been super helpful a few weeks ago (and I’m sure it’ll com in handy in the future). Thanks!

0 Likes