Skip to content

Instantly share code, notes, and snippets.



Created May 7, 2014
What would you like to do?
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"

This comment has been minimized.

Copy link
Owner Author

@harthur 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>
  <meta charset="UTF-8">

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