I have the problem that if I autoformat a XHTML file (JSF 1.2) in Eclipse with the keys CTRL + SHIFT + f, the output looks really bad and is not really readable anymore.
My formated code:
<span class="label viertel alignright">
<h:outputLabel for="itLine5" value="E-Mail:" />
</span>
Becomes this:
<span class="label viertel alignright"> <h:outputLabel
for="itLine5" value="E-Mail:" /> </span>
In this small example, it's still readable - but in longer code it's just chaos!
How do I make sure that my XHTML code is formatted in a readable manner?
I use this version of Eclipse Helios:
- Eclipse Java EE IDE for Web Developers.
- Version: Helios Service Release 1 - Build id: 20100917-0705
I use these JBoss Tools:
- JBoss Archies Tools 3.2.0
- JBoss Tools RichFaces 3.2.1
- JBossASTools 2.2.0
- Hibernate Tools 3.40.0
- JBoss Seam Tools: 3.2.1