Format Java scriptlets inside JSP files <% %>
Brought to you by:
mikeatkinson,
seguin
Make JavaStyle plugin for jEdit able to format java code
in JSP files in scriptlet tags:
<% statements; %>
<%! declarations() {} %>
<%@ directives %>
<%= expressions %>
(<%@ %> does not contain java-language code, but the
normal java formatting rules can apply to the others)
Logged In: YES
user_id=476481
It should be fairly easy to select the text between <% and
%> and then pass this to a JavaParser instance.
Logged In: YES
user_id=476481
This is quite hard as <% statements %> do not have to form
blocks, like:
<% public void someMethod() {
int x = 10;
%>
...
<% } %>
I'll have to keep a track of what source comes from each
scriptlet, reformat it as a whole then distribute back to
the scriptlets. Not impossible (as long as no sorting
occurs), but involving a lot of book-keeping.
I don't think the expressions need formatting.