facebook

Code formatting for JSP

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. WebSphere Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #314198 Reply

    brunocleite
    Member

    Hi.
    I would like to know if this is a normal behavior: when i run the automatic code formatter (ctrl + shift + f) inside a jsp that has HTML code and tags, it ignores all my html tags and format only the JSP ones.

    Example of a formatted part of code with HTML and JSP tags:

    
    <span class="acs"> <this:isatag id="glb"
                    style="display: none;">
                    <span class="rlo"> <span
                        class="rlom"> <span id="msg"></span> </span>
                    </span>
    

    It looks like it doesn’t treat span tags as real tags, just because they aren’t on JSP style

    Thanks.

    #314219

    support-joy
    Member

    brunocleite,

    You have nested span tags. This is not the norm. If you use the below block of code –

    
     Roger has
       <span class="blue">light blue</span> eyes and Mark has
       <span class="green">dark green</span> eyes. 

    and use the short cut key for formatting, it works. Try removing the nested span tags and using the shortcut key.

    #314235

    brunocleite
    Member

    Allright, it worked, but why can’t i have nested span tags? I checked it on W3c and it is allowed. But there’s another thing: script tags content is not indented.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Code formatting for JSP

You must be logged in to post in the forum log in