Sublime Forum

Snippet used to work, now it doesn't

#1

I have this snippet as “~/Library/Application Support/Sublime Text 3/Packages/User/echowithparagragh.snippet”:

<snippet> <content><![CDATA[echo "<p>...</p>"]]></content> <!-- Optional: Tab trigger to activate the snippet --> <tabTrigger>ecp</tabTrigger> <!-- Optional: Scope the tab trigger will be active in --> <scope>text.html</scope> <!-- Optional: Description to show in the menu --> <description>echo with html paragraph</description> </snippet>

When I first created it, it worked fine. Now it doesn’t come up, and it isn’t listed in the snippets.

0 Likes

#2

The extension needs to be “.sublime-snippet”.

0 Likes

#3

That did it. I’m not sure when it got renamed. Maybe I changed the filename, and OSX altered the filetype? Oh, well. Glad it’s fixed.

0 Likes