Sublime Forum

I need help with very simple Syntax Highlighting

#1

I need to create a new syntax highlighting format with the following conditions:

normally, syntax highlight for html
if the line starts with a # then highlight for python.
if the line starts with ## then its still a comment.

I’m hoping (crossing my fingers) that This can be easily accomplished by appending a large chunk of the Python.tmLanguage onto the HTML.tmLanguage file.

Can some one give me a hand? (do it for me if its trivial as described above or point me to some resources)

Help would be greatly appreciated.

  • justin
0 Likes