I can’t figure out a way to insert CDATA inside a ST2 Snippet. I use a lot of snippets for XML, and many of them contain their own CDATA blocks.
For instance, this snippet won’t work, because the CDATA closure inside the Snippet’s own CDATA causes a conflict:
<snippet>
<content><![CDATA[
<not_working>
<code><![CDATA[ this cdata block breaks the snippet... ]]></code>
</not_working>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- <tabTrigger>hello</tabTrigger> -->
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
Is there any way for me to escape my own CDATA blocks inside ST2 Snippets?
Thanks