When using the HTML snippet "script" in VS 2010, I get:
<script type="text/javascript"> </script>
I would like the snippet to display the following result:
<script type="text/javascript">
//<![CDATA[
//]]>
</script>
I looked at the .snippet file for this and found the following "Code" element:
<Code Language="html"><![CDATA[<script type="text/javascript">$selected$$end$</script>]]></Code>
and I realized that it can be a little difficult to make it work, i.e. this does not happen:
<Code Language="html"><![CDATA[<script type="text/javascript">
//<![CDATA[
$selected$$end$
//]]>
</script>]]></Code>
Does anyone know a little more knowledge of XML than I know if this is doable?
source
share