Home Download Buy Blog Forum Support

user snippets not working

user snippets not working

Postby hittman on Wed Aug 15, 2012 6:53 am

I'm creating my first set of user snippets but i'm having trouble getting them to work. As a test i created the following snippet and saved it to the User folder in Packages.

Code: Select all
<snippet>
   <content><![CDATA[
this is a test
]]></content>
   <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
   <tabTrigger>test</tabTrigger>
   <!-- Optional: Set a scope to limit where the snippet will trigger -->
   <scope>source.html</scope>
</snippet>


When I do go to test it by selecting the html language, typing in the tab trigger text and hitting tab nothing happens? What am I doing wrong?
hittman
 
Posts: 2
Joined: Wed Aug 15, 2012 6:46 am

Re: user snippets not working

Postby hittman on Wed Aug 15, 2012 8:55 am

Figured it out. The source should be:

Code: Select all
<scope>text.html</scope>
hittman
 
Posts: 2
Joined: Wed Aug 15, 2012 6:46 am


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 16 guests