Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » JSP editor problem(Need help in JSP formatter)
JSP editor problem [message #502647] Wed, 09 December 2009 04:38
Szabo Peter is currently offline Szabo Peter
Messages: 1
Registered: July 2009
Location: Hungary
Junior Member
I would like to know if it's possible to set the JSP file's formatting to have the following output after Ctrl + F (Format Code)

Original:
<body>
<f:view>
    <h:form id="addEditForm">
         <div id="container">
        <div id="addEditSection"><atg:clientSideDropDownGrid  dataFieldName="name"
            keyDataFieldName="id"  labelCaption="Consultation/Procedure Requested:"
            value=""  required="true"       id="consulProcedure" >ABC   </atg:clientSideDropDownGrid> <br />
....

....

I would like to have the nested tags to be idented within a new line every time. (The tag's attribute can be in one line, or in multiple line. That does not matter for me.)

So the required format would be:
<body>
  <f:view>
    <h:form id="addEditForm">
        <div id="container">
           <div id="addEditSection">
               <atg:clientSideDropDownGrid  
                            dataFieldName="name"
                            keyDataFieldName="id"
                            labelCaption="Consultation/Procedure Requested:"
                           value=""   required="true" id="consulProcedure">
                    ABC
               </atg:clientSideDropDownGrid> <br />

 .....
Previous Topic:Can I declare constraints for the same project-facet-version in different plugins?
Next Topic:"Go to declaration" not working with EL-expressions
Goto Forum:
  


Current Time: Fri Aug 22 07:55:44 EDT 2014

Powered by FUDForum. Page generated in 0.05007 seconds