Skip to content

Instantly share code, notes, and snippets.

@non-carbondated
Created January 26, 2015 15:38
Show Gist options
  • Save non-carbondated/dc4ee85269192bf13147 to your computer and use it in GitHub Desktop.
Save non-carbondated/dc4ee85269192bf13147 to your computer and use it in GitHub Desktop.
LeadPages template.json snippets for use in Sublime Text
<snippet>
<content><![CDATA[
{
"type": "color",
"name": "$1 Color",
"find": "#$2"
},
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>lps:color</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
<snippet>
<content><![CDATA[
{
"id": "$1",
"name": "$2",
"type": "container"
},
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>lpe:container</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
<snippet>
<content><![CDATA[
{
"id": "$1",
"name": "$2 Image",
"type": "image",
"data": {
"max-width": $3
}
},
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>lpe:image</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
<snippet>
<content><![CDATA[
{
"id": "$1",
"name": "$2",
"type": "$3"
},
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>lpe</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>text.json</scope> -->
</snippet>
<snippet>
<content><![CDATA[
{
"id": "$1",
"name": "$2 Text",
"type": "text"
},
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>lpe:text</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment