I want to create a snippet to save time for coding but ST don’t permit. When I save file, it shows so:
http://nt0.upanh.com/b5.s11.d1/9c4c4f7c81175fe691d79958ccee2c47_51589530.h1.png
Somebody help me fix this trouble, thanks!
I want to create a snippet to save time for coding but ST don’t permit. When I save file, it shows so:
http://nt0.upanh.com/b5.s11.d1/9c4c4f7c81175fe691d79958ccee2c47_51589530.h1.png
Somebody help me fix this trouble, thanks!
If you compared yours to any other snippet (even the default one) you would see that it needs to be enclosed as CDATA:
<snippet>
<content><![CDATA[
Hello, ${1:this} is a ${2:snippet}.
]]></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>