Way to get HTML formatting in JSP
I have a JSP and the auto-indent and code formatting doesn't work. If I format a block of code it makes it flat instead of indented. Here is how it formats in HTML
<div > <div > <div > <h3>Production Build Links</h3> </div> <div > <span data-tooltip title="Coming Soon!">Help</span> </div> <div > <div > <a href="goToLogin.action?subClientId=100®SingleStep=y" >Login & 1 Step Registration</a> </div> <div > <a href="goToLogin.action?subClientId=100®SingleStep=n" >Login & 2 Step Registration</a> </div> <div > <a href="admin/goToAdminLogin.action?subClientId=100" >Administration</a> </div> </div> <div > <div ></div> </div> </div> </div>
Here is how it formats in a JSP
<div > <div > <div > <h3>Production Build Links</h3> </div> <div > <span data-tooltip title="Coming Soon!">Help</span> </div> <div > <div > <a href="goToLogin.action?subClientId=100®SingleStep=y" >Login & 1 Step Registration</a> </div> <div > <a href="goToLogin.action?subClientId=100®SingleStep=n" >Login & 2 Step Registration</a> </div> <div > <a href="admin/goToAdminLogin.action?subClientId=100" >Administration</a> </div> </div> <div > <div ></div> </div> </div> </div>
I'm sure it's a simple setting but I've been searching for a while and can't find it.
Please sign in to leave a comment.
Hi Mike,
yes, there is a simple setting - use Intellij Idea instead of WebStorm for JSP editing :)
See http://youtrack.jetbrains.com/issue/WEB-527
Best regards,
Lena