When using the HTML snippet "script" in VS 2010 I get:
<script type="text/javascript"> </script> I would like the snippet to render the following result:
<script type="text/javascript"> //<![CDATA[ //]]> </script> I have 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 it might be a bit tricky to get this to work, i.e. this doesn't:
<Code Language="html"><![CDATA[<script type="text/javascript"> //<![CDATA[ $selected$$end$ //]]> </script>]]></Code> Does anyone with a bit more XML knowledge than me know if this is doable?