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?
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
Yes, use the XML plugin for Notepad++. It has a "pretty print" feature that will probably work on HTML.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With