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 ?
Two links of note:
I've done some embedded syntax work, but nothing as complex as you're describing, so I'm not convinced my work is relevant.