I'm a very new Sublime Text 2 user and I'm trying to setup a usable HTML Tidy package. I've installed SublimeHtmlTidy and I've left the settings unchanged.
I've added shortcut { "keys": ["ctrl+alt+t"], "command": "html_tidy"}
When I run it on this code:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<h1>Heading 1</h1>
<p>
Some text
</p>
</body>
</html>
The output I get is this:
<h1>
Heading 1
</h1>
<p>
Some text
</p>
..it having stripped the head, body and html tags.
I've tried setting the "show-body-only": true
in the hope that it will ignore everything outside the body, and also the "doctype": "omit"
and "doctype": "auto"
hoping that it will leave the doctype untouched.
What am I doing wrong people? Thanks!