开发者

How to make auto-indent work in Eclipse for jsp/jsf/xhtml pages?

开发者 https://www.devze.com 2023-02-22 21:41 出处:网络
I\'m using Eclipse Helios with WTP. I would like eclipse to auto-indent jsf pages. Eclipse fails to do that properly and I didn\'t find any place that I can configure what I want.

I'm using Eclipse Helios with WTP. I would like eclipse to auto-indent jsf pages. Eclipse fails to do that properly and I didn't find any place that I can configure what I want.

Examples of bad auto-indentation

<li><c:if test="${userSession.loggedUser eq null}">

also

</h:outputLink></li>

The on开发者_开发问答ly configuration I found is in Preferences -> XML -> Editor and there are only a handful of options none of which say split new elements on a new line although it has the useless split attributes on a new line.

Currently I'm jsf + richfaces, but this problem exists since jsp was the top of the web stack.


Have you also checked the available preferences under HTML?

0

精彩评论

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