Format java snippet in jsp file in eclipse
When I format automatically开发者_C百科 my jsp files in eclipse the java code in brackets <% {javacode} %> gets also formatted.
Which formatter options are considered in this case?
I am asking because the formatter wraps my lines after 72 characters and I want to change this behaviour.
You'll have to set the Line Width
under Web > HTML Files > Editor
.
Java and JavaScript aren't the same as each other, nor the same as HTML. Have you tried modifying the formatting settings for those languages, using their preference pages?
精彩评论