HTML Snippets made easy, with Intype
Thursday November 20th, 2008
Tagged:
Intype
Written by
One of the things that drew me to Intype is the ability to create simple, but effective code snippets.
Here's an example, as written for a user of the Intype forums recently, who wanted bundles for <h1> to <h5>.
{ title : 'Heading 1' tab_trigger : 'h1' scope : 'text.html' key_equivalent : 'Ctrl+1' content : '<h1>${1:$SELECTED_TEXT}</h1>$0' }
If you're an Intype user, you can download the bundle (2Kb)
Tab triggers & Shortcuts
- h1 - Heading 1
- h2 - Heading 2
- h3 - Heading 3
- h4 - Heading 4
- h5 - Heading 5
All of the above can also be triggered using <ctrl>+<N> for example <ctrl>+<1>
Output
Any selected text will be placed between the tags, e.g.;
<h1>selected text shown here</h1>
Comments currently disabled


