Home Download Buy Blog Forum Support

Snippet not working

Snippet not working

Postby andydesigns on Fri Dec 23, 2011 11:56 am

Hi all,

This is my first attempt at creating a snippet but its not working, what am I doing wrong?:

Code: Select all
<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>

<snippet>
   <content>
      <![CDATA[<img src="images/soccertots.jpg" alt="Soccer Tots"  width="101" height="99" id="soccertots_pic"/>]]>
   </content>
   <tabTrigger>totsimg</tabTrigger>
   <description>Inserts Soccer Tots Logo code</description>
</snippet>


tia
andydesigns
 
Posts: 4
Joined: Fri Dec 23, 2011 11:54 am

Re: Snippet not working

Postby jps on Fri Dec 23, 2011 10:15 pm

You appear to have two snippets in a single file
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot] and 24 guests