开发者

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.

Format java snippet in jsp file in eclipse


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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜