I'm programming for a product that includes snippets of Java (actually BeanShell) code embedded in larger XML files. These are executed on the fly at runtime. There can be more than one of these code tags at various levels throughout the document.
<larger-xml-file>
<java>
// java code that I want to syntax highlight
</java>
<more-xml...>
</larger-xml-file>
It would be great to allow basic syntax highlighting of the code within specific XML tags. I know that vi can do this with <script> tags inside of HTML, for example. It would really help me catch silly bugs like missing end quotes.
If it could allow completion or basic syntax checking, that would be even better.
Is there a way to easily configure this in Eclipse?
include "foo.javawith the sourcecode and creates a new file. Hot deploy the created XML and see if it works. The preprocessor step chould be easily done with maven or any other build tool and you could even include the step where you copy the file for the app to hot deploy