How to format JSF
code in eclipse?
I already try as the following :
My XML Editor
Configuration Setting is :
- Line width 120
- Split multiple attributes each on a new like Checked
- Align final bracket in mulit-line element tags Checked
- Clear all blank lines Checked
If I do Ctrl + Shif + F
, eclipse format the code as below.
<tr>
<td><h:outputText value="#{label['MANAGE_USER_TITLE']}"
styleClass="table-title" /></td>
</tr>
My expectation format is, after Ctrl + Shif + F
<tr>
<td>
<h:outputText value="#{label['MANAGE_USER_TITLE']}" styleClass="table-title" />
▲
This line may be wrap base on line size.
</td>
</tr>
How can I do for that? Is there any plugin?
I already try HTML Tidy
, I can only format HTML
, not JSF
code.
Update
Picture -1
Eclipse Setting for Picture-1
Picture - 2 (I want)
<tr>
and<td>
tags from the Inline Elements list. – Vickievicksburg