Skip to content

Instantly share code, notes, and snippets.

@jackpinto
Created April 14, 2014 16:04
Show Gist options
  • Save jackpinto/10661308 to your computer and use it in GitHub Desktop.
Save jackpinto/10661308 to your computer and use it in GitHub Desktop.
Sublime Html Snippet
<snippet>
<content><![CDATA[
btn:b.btn.btn-${1:default}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bbutton</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.html</scope>
</snippet>
<snippet>
<content><![CDATA[
div.row>div.col-md-6.form-group>label[for="{1}"]{}+select.form-control[id="{1}" name="{1}"]>option{}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>divselect</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text/html</scope>
</snippet>
<snippet>
<content><![CDATA[
div.row>div.col-md-6.form-group>label[for="{1}"]{}+input.form-control[id="{1}" name="{1}"]
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>divs-input</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.html</scope>
</snippet>
<snippet>
<content><![CDATA[
div.col-${1:md}-${2:12}.form-group
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bformgroup</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.html</scope>
</snippet>
<snippet>
<content><![CDATA[
label[for=${1}]+input.form-control[type=date][id=${1}][name=${1}]
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bdate</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.html</scope>
</snippet>
<snippet>
<content><![CDATA[
label[for=${1}]+input.form-control[type=text][id=${1}][name=${1}]
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>btext</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.html</scope>
</snippet>
<snippet>
<content><![CDATA[
ng-click=""]]>
</content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>ngc</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.html</scope>
</snippet>
<snippet>
<content><![CDATA[
ng-model=""
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>ngm</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.html</scope>
</snippet>
<snippet>
<content><![CDATA[
ng-repeat=""
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>ngr</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.html</scope>
</snippet>
<snippet>
<content><![CDATA[
label[for=${1}]+select.form-control[id=${1}][name=${1}]>option{${2:Selecione}}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bselect</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.html</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment