Skip to content

Instantly share code, notes, and snippets.

@harthur
Created May 7, 2014 23:03
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 harthur/543aac1d0863e575fa21 to your computer and use it in GitHub Desktop.
Save harthur/543aac1d0863e575fa21 to your computer and use it in GitHub Desktop.
Sublime Text snippet for inserting basics of an HTML document
[
{ "keys": ["super+shift+h"],
"command": "insert_snippet",
"args": {
"contents": "<!DOCTYPE html>\n<html>\n<head>\n <meta charset=\"UTF-8\">\n</head>\n<body>\n\n</body>\n</html>"
},
"description": "insert basics of an HTML document"
}
]
@harthur
Copy link
Author

harthur commented May 7, 2014

Go to Sublime Text 2 > Preferences > Key Bindings - User and add this JSON to the file.

Now Cmd-Shift-H inserts

<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
</head>
<body>

</body>
</html>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment