Sublime Forum

Can't create snippet IE9 ?!

#1

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!

0 Likes

#2

The image is broken…

0 Likes

#3

Here it is:

http://img545.imageshack.us/img545/7537/57352210.png

0 Likes

#4

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>

0 Likes

#5

Yeah, I fixed this problem. Thanks :wink:

0 Likes