Sublime Forum

Determine Syntax Element

#1

Is there a way to determine which syntax element is at the cursor? I used to use this feature of Emacs to update my indentation/coloring/etc. exactly the way I like, but I’ve been fighting with ST2 to do the same thing.

If not, is there some other way to make creating color syntax easier (I used to use synic from Vim, but translating it is making my eyes and fingers bleed!).

0 Likes

#2

Doh! I think I found it - the API has a function sublime.View.scope_name that appears to do it. I’ll write some python and bind to a key so I can make it easy.

0 Likes

#3

https://github.com/facelessuser/ScopeHunter

0 Likes

#4

Awesome! Saved me some time :smile:

Thank you!

0 Likes