welovewordpress / SublimeHtmlTidy

Tidy, clean and prettify your HTML code with this plugin for Sublime Text 2
GNU General Public License v2.0
88 stars 15 forks source link

HTML written out #20

Open raptor235 opened 12 years ago

raptor235 commented 12 years ago

When I run html tidy on the entire file it keeps adding html markup to the top and bottom.. ie

however I have "output-xhtml": false, I don't want any extra html showing up.. any ideas?
fitnr commented 12 years ago

If you run tidy without a selection, it will assume you want to tidy a full document. Select only a portion of your document, and no tags will be added. If you still have problems, add "show-body-only": false to your user settings file.

ghost commented 11 years ago

I had the same problem, first selecting all of the text fixed it, though, "show-body-only": false did nothing.

agentfitz commented 10 years ago

I am having this same issue. I would rather not have to select the text, and just quickly run tidy on the whole file without any extra tags added. Can something like this be added as an option?

"add-document-tags": false

This seems like a very common use case for html templating and server side includes, etc. Thanks for the great plugin

curtisweeks commented 10 years ago

Use "show-body-only": true in user settings.