formating xml with in string quotes

Hi,

Intellij could consider to support applying xml syntax formatting for jsp fragments or any string fragments

<a href="
 <portlet:actionURL>
 <portlet:param name='action' value='redirectBook'/>
      <portlet:param name='book' value='${book.key}'/>
 </portlet:actionURL>">



i.e Intellij could understand xml syntax with in the href value and apply xml formatting including identation.

alternate string which could exist is inner "

i.e

<a href="
 <portlet:actionURL>
 <portlet:param name="action" value="redirectBook"/>
      <portlet:param name="book" value="${book.key}"/>
 </portlet:actionURL>">




Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
-On stop for Offshore Java Product Engineering Excellence
0
2 comments

Also, once it knows it is xml insite the string let it apply all the xsl/dtd checks and allow to go its defination though Ctrl + Mouse click - hiper link.

Basically, Intellij should work the same for xml's out side the string for inside the strings too.

0

It looks like language injection. If all your hrefs contain valid xml, just
use "Inject language" intention.
Anyway, feel free to file a request for auto-recognition of XML fragments
inside attributes.

0

Please sign in to leave a comment.