Customizing HTML Tidy for backing tags and nothing more in Notepad ++

All I want HTMLTidy to do is indent my HTML document tags, but it is currently changing doctype, adding an attribute xmlnsto the tag html, changing the tags, <br />and probably doing some other things.

How to make HTMLTidy in Notepad ++ only indent when I select TextFX -> TextFX HTML Tidy -> TiDy Clean Document-nowrap ?

+5
source share
2 answers

There is a file named HTMLTIDY.CFGin <NPPInstallDir>plugins\Config\tidywhich configures the Tidy operation. From what you said, I think that all you need to do is delete (or comment with ;;) everything except the indent options, i.e.

indent: yes
indent-spaces: 2
+3
source

Yes, use the XML plugin for Notepad ++. It has a "pretty printable" feature that is likely to work with HTML.

+1
source

All Articles