Reputation: 115
All I want HTMLTidy to do is indent my HTML document's tags, but it currently also changes the doctype
, adds an xmlns
attribute to the html
tag, changes <br />
tags, and probably does some other stuff.
How do I make it so that HTMLTidy in Notepad++ only performs indentation when I select TextFX → TextFX HTML Tidy → TiDy Clean Document-nowrap?
Upvotes: 5
Views: 12651
Reputation: 29669
Yes, use the XML plugin for Notepad++. It has a "pretty print" feature that will probably work on HTML.
Upvotes: 1
Reputation: 9564
There's a file called HTMLTIDY.CFG
in <NPPInstallDir>plugins\Config\tidy
that configures the Tidy operation. From what you said, I think all you'd have to do is remove (or comment out with ';') everything but the indent options, i.e.
indent: yes
indent-spaces: 2
Upvotes: 3