Skip to content

Instantly share code, notes, and snippets.

@krisanalfa
Last active December 16, 2015 14:39
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 krisanalfa/5450153 to your computer and use it in GitHub Desktop.
Save krisanalfa/5450153 to your computer and use it in GitHub Desktop.
Put it on "~/.config/sublime-text-2/Packages/User/" folder. Create an HTML document (by extension or by syntax), and type "html5" -> TAB.
<snippet>
<content><![CDATA[
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]> <html class="no-js" lang="en"> <![endif]-->
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height" />
<meta name="author" content="${2:Author}" />
<title>${3:Title}</title>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
</body>
</html>
]]></content>
<scope>source.php,text.html</scope>
<tabTrigger>html5</tabTrigger>
<description>HTML 5 Document Snippet</description>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment