Skip to content

Instantly share code, notes, and snippets.

@johnstonian
Last active December 28, 2015 01:29
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 johnstonian/7421173 to your computer and use it in GitHub Desktop.
Save johnstonian/7421173 to your computer and use it in GitHub Desktop.
HTML5 document snippet for Sublime Text 2. Creates a barebones html5 document when typing 'html5' and then hitting Tab.
<snippet>
<content><![CDATA[
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>${1: enter title}</title>
<meta name="description" content="${2: enter website description}">
<meta name="author" content="${3: enter the author here}">
<meta name="keywords" content="${4: enter your keywords here}">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script>${5: enter your scripts}</script>
<link rel="stylesheet" media="screen" href="${6: stylesheet declaration}">
</head>
<body>
${7: hello world!}
</body>
</html>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>html5</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment