0 Replies Latest reply on Jun 4, 2007 6:15 PM by awhitford

    XML formattting in Eclipse to match seam-gen

    awhitford

      When looking at seam-gen generated xhtml, I can see it is formatted in a way that the element attributes are aligned on the equals (=) sign:

       <s:decorate id="nameDecoration" template="layout/edit.xhtml">
       <ui:define name="label">name</ui:define>
       <h:inputText id="name"
       required="true"
       size="40"
       maxlength="40"
       value="#{countryHome.instance.name}">
       <a:support event="onblur" reRender="nameDecoration"/>
       </h:inputText>
       </s:decorate>
      

      This is certainly pretty, and makes it easy to read.

      My problem is that this alignment is lost when I reformat this XML in Eclipse because it has its own indentation rules. Is there a way to get this kind of indentation in Eclipse?