I have a proprietary application that takes XML files and can use embedded Java code in XML file to perform certain operations. I opened the XML file in ST2, but I only get syntax highlighting for XML code, Java code is just white. If I switch the syntax to Java from view menu, java code is properly highlighted. Is there a way to have both languages syntax highlighted in the same file ?
Asked
Active
Viewed 1,704 times
1 Answers
1
Two links of note:
- How do I add another tag to be parsed as embedded JS in a tmLanguage file?
- http://sublimetext.userecho.com/topic/27384-nested-syntax-highlighting/
I've done some embedded syntax work, but nothing as complex as you're describing, so I'm not convinced my work is relevant.

Community
- 1
- 1

Dave Newton
- 158,873
- 26
- 254
- 302