HTML5 Snippet for Sublime Text 2

sublime html5 snippet

To set up a new Snippet in Sublime go to:

Tools>New Snippet

That will open a new snippet file with some default text.

For a basic HTML5 template, paste the body of the snippet into the file, like this:

 <content><![CDATA[<!DOCTYPE html>
   <meta charset="UTF-8">

Save it anywhere in Packages/User/ directory as html-html5skel.sublime-snippet. Restart Sublime, type html5skel, then hit tab. Voila!

Leave a Reply

Your email address will not be published. Required fields are marked *