Skip to content

Instantly share code, notes, and snippets.

@iflamed
Created June 19, 2015 05:26
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 iflamed/c0933cd310b6eba9800b to your computer and use it in GitHub Desktop.
Save iflamed/c0933cd310b6eba9800b to your computer and use it in GitHub Desktop.
Bootstrap form horizontal group snippet and inline or normal group snippet
<snippet>
<content><![CDATA[
<div class="form-group">
<label for="${1:eleid}">${2:Title}</label>
<input type="text" class="form-control" name="${1:eleid}" id="${1:eleid}" placeholder="${2:Title}">
</div>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bs3-form:group</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.html,source.php</scope> -->
</snippet>
<snippet>
<content><![CDATA[
<div class="form-group">
<label for="${1:handler}" class="col-sm-2 control-label">${2:Title}</label>
<div class="col-sm-10">
<input type="text" name="${1:handler}" id="${1:handler}" class="form-control" required="required">
</div>
</div>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bs3-form:hgroup</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.html,source.php</scope> -->
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment