Skip to content

Instantly share code, notes, and snippets.

@balupton
Created September 2, 2011 00:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save balupton/1187647 to your computer and use it in GitHub Desktop.
Save balupton/1187647 to your computer and use it in GitHub Desktop.
Sublime Snippet which creates a set of options with the sparkle and argument data.
<snippet>
<content><![CDATA[options = \$.extend(${1:true,}{$2},\$this.data('sparkle-${3:options}')||{},options||{});
]]></content>
<tabTrigger>options=</tabTrigger>
<scope>source.js</scope>
<description>options = $.extend(true,{},$this.data('sparkle-options')||{},options||{});</description>
</snippet>
@balupton
Copy link
Author

balupton commented Sep 2, 2011

To learn how to use snippets, refer to: http://sublimetext.info/docs/en/extensibility/snippets.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment