htmlxmlnotepad++auto-indentautoformatting

How To Auto-Format / Indent XML/HTML in Notepad++


Is there a way to re-indent a block of code? I'm looking for something similar to Ctrl+Shift+F in Eclipse (Auto-Format/Indent).

To be clear,

I already know about NppAutoIndent - it won't work, as I'm working with XML, HTML and CSS.


Solution

  • Since I upgraded to 6.3.2, I use XML Tools.

    enter image description here

    enter image description here

    In older versions: menu → TextFX → HTML Tidy → Tidy: Reindent XML.