Sublime Forum

Can't create new Snippet in ST3 & Mavericks

#1

I am a Sublime noob trying to create a snippet using Sublime Text 3 (also tried it with v2, and that did not work either). I saved and relaunched Sublime Text 3 and it still does not register even though it seems to be formatted correctly — ie, typing “SDEFHead” and tab doesn’t insert the xml. And searching for the snippet using cmd-shift-p does not show it. A snippet I created previously in Mountain Lion which is formatted and saved the same way seems to work fine. Any suggestions?

Mac details: Macbook Pro (late 2008) running OS X 10.9 (Mavericks build 13A603)
The snippet is for the XML syntax.
It is saved in /Application Support/Sublime Text 3/Packages/User/XML/
The saved snippet is named: SDEFHead.sublime-snippet

Here is the snippet:

[code]
<![CDATA[

<?xml version="1.0" encoding="UTF-8"?> ]]> SDEFHead source.XML Creates SDEF File for Applescript Library [/code]

I tried it with and without a description which I saw in the unofficial documentation. Tried with ‘XML’ in source name capitalized and lower case, didn’t help. Tried changing the User folder name to ‘XML’ and ‘xml’, and still no joy. What am I missing here???
TIA, vince.

0 Likes

#2

Change:
source.XML --> text.xml

If that doesn’t work, where do you save the snippets?

0 Likes

#3

thanks… that did the trick. I knew it would be something ridiculously simple!

I wonder why the other snippet I created which also used the incorrect ‘source.xml’ seemed to work just fine. Another mystery of the universe….

vince

0 Likes