Skip to content

Instantly share code, notes, and snippets.

@aholachek
Last active December 9, 2016 21:40
Show Gist options
  • Save aholachek/3b3c80b4e3726880f8f86dfd7173d626 to your computer and use it in GitHub Desktop.
Save aholachek/3b3c80b4e3726880f8f86dfd7173d626 to your computer and use it in GitHub Desktop.
Better HTML Starter Snippet for Atom
".text.html, .text.php":
"template":
"prefix": "html"
"body": """
<!DOCTYPE html>
<html lang="en-us" class="no-js">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta charset="utf-8">
<title>
$1
</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<script>
var doc = document;
doc.documentElement.className = doc.documentElement.className.replace('no-js'," ");
doc.documentElement.className += ' js ';
</script>
<link rel="stylesheet" href="$2">
</head>
<body>
$3
</body>
</html>
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment