Skip to content

Instantly share code, notes, and snippets.

@shaneturner
Created February 27, 2017 00:14
Show Gist options
  • Save shaneturner/7a8628a6023497c0e2984e77673c6c15 to your computer and use it in GitHub Desktop.
Save shaneturner/7a8628a6023497c0e2984e77673c6c15 to your computer and use it in GitHub Desktop.
Bootstrap Text Field Snippet with Laravel Scoping
<snippet>
<content><![CDATA[
<div class="form-group">
<label for="${1:name}">${2}:</label>
<input type="text" class="form-control" id="${1}" name="${1}"/>
</div>
${0}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bstext</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.blade, text.html.laravel-blade, meta.tag.block.any.html, punctuation.definition.tag.begin.htm, source.php</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment