Glen Peterson
-
2003-09-09
- priority: 5 --> 6
I often escape my javascript sections inside CDATA tags.
It would be nice to have different rules for these
sections. Consider the following example:
<script type="text/javascript">
<xsl:comment><![CDATA[
var a = 3;
if (a < 5)
{
alert("<<<<<hello>>>>>>");
}
// ]]></xsl:comment>
It tried to indent whenever I typed < or /.
It gave me </hello> when I typed >. I deleted it. After
the CDATA tag, I typed </ and expected to get
</xsl:comment> but I got </hello>. I would like these
features disabled inside CDATA and comment tags.
Log in to post a comment.