Skip to content

Instantly share code, notes, and snippets.

@larrybotha
Created August 10, 2012 11:15
Show Gist options
  • Save larrybotha/3313504 to your computer and use it in GitHub Desktop.
Save larrybotha/3313504 to your computer and use it in GitHub Desktop.
Sublime Text 2 | Snippets
<snippet>
<content>
<![CDATA[border: 1px solid red;]]></content>
<tabTrigger>bdred</tabTrigger>
<description>border: 1px solid red;</description>
</snippet>
<snippet>
<content><![CDATA[
background: red;$1
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bgred</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
<description>
background: red;
</description>
</snippet>
<snippet>
<content><![CDATA[
/* '${1:fraction}' / ${2:whole} = ${3:total}% */
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>calc</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>text.css</scope> -->
<description>
'x' / y = z%
</description>
</snippet>
<snippet>
<content><![CDATA[
hsla(0, 0%, ${1:0}%, $2)
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>hsla</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
<description>
hsla(0,0%,0%,x)
</description>
</snippet>
<snippet>
<content><![CDATA[javascript:void(0);]]></content>
<tabTrigger>jv</tabTrigger>
<description>javascript:void(0);</description>
</snippet>
<snippet>
<content><![CDATA[
\$('$1')
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>$</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
$('')
</snippet>
<snippet>
<content><![CDATA[
console.log($1);
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>cl</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
<description>
console.log();
</description>
</snippet>
<snippet>
<content>
<![CDATA[(function( \$ ) {
$1
})( jQuery );]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>siaf</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
<description>Self Invoking Anonymous Function</description>
</snippet>
@larrybotha
Copy link
Author

Path: Packages/User

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