Can I include CDATA section in a VS 2010 HTML snippet?

ctyepy9hot

New Member
When using the HTML snippet "script" in VS 2010 I get:\[code\]<script type="text/javascript"> </script>\[/code\]I would like the snippet to render the following result:\[code\]<script type="text/javascript">//<![CDATA[//]]></script>\[/code\]I have looked at the .snippet file for this and found the following "Code" element:\[code\] <Code Language="html"><![CDATA[<script type="text/javascript">$selected$$end$</script>]]></Code>\[/code\]and I realized it might be a bit tricky to get this to work, i.e. this doesn't:\[code\]<Code Language="html"><![CDATA[<script type="text/javascript">//<![CDATA[$selected$$end$//]]></script>]]></Code>\[/code\]Does anyone with a bit more XML knowledge than me know if this is doable?
 
Top