Dan
Iam a geek, failed novelist, web developer, (very) part-time blogger and - most importantly - husband and father. With a baby just arrived, spending time with my family means far more to me than anything you can read on this website. I am also the owner of the open-source Intype snippets for CodeIgniter project.
Saturday July 31st, 2010

Blog Categories

Twitter updates

Loading tweets  

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

  1. h1 - Heading 1
  2. h2 - Heading 2
  3. h3 - Heading 3
  4. h4 - Heading 4
  5. 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