问题
there are situations when javascript really has to be in a JSP page, instead of having it in a separate files.
And some frameworks also do some things with Javascripts so that they have user to include it into JSP tags, so that JS is not in <script src...> but <some:jspTag>
I'd like to know if it is possible to setup formatting for it, it works in <script src...> but not in <some:jspTag>.
回答1:
I was trying to figure out the same thing, because Liferay tag does this thing. Unfortunately it is not possible, at least a year ago it wasn't.
eclipse forum
来源:https://stackoverflow.com/questions/5697958/how-to-activate-syntax-coloring-for-javascript-in-jsp-editor-eclipse