Skip to content

Instantly share code, notes, and snippets.

@turboMaCk
Created October 22, 2013 15:34
Show Gist options
  • Save turboMaCk/7102866 to your computer and use it in GitHub Desktop.
Save turboMaCk/7102866 to your computer and use it in GitHub Desktop.
Sublime Text HTML5 snippet. Open Sublime: Tools > New snippets => INSERT CODE; replace meta author; save with .sublime-snippet extension. then open blak file, type doctype and hit tab. <3
<snippet>
<content><![CDATA[
<!doctype html>
<!--[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]-->
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="${1:description}">
<meta name="author" content="YOUR NAME">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="HandheldFriendly" content="true">
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<title>${2:title}</title>
<!--[if lt IE 9]>
<script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]-->
<link rel="stylesheet" href="${3:styles}">
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js" ></script>
<script src="${4:script}"></script>
</head>
<body>
${5:body}
</body>
</html>
]]></content>
<tabTrigger>doctype</tabTrigger>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment