Try XML Tools. Plugins -> XML Tools -> Pretty Print (libXML) or (XML only - with line breaks Ctrl + Alt + Shift + B)
You may need to install XML Tools using your plugin manager in order to get this option in your menu.
In my experience, libXML gives nice output but only if the file is 100% correctly formed.
Answer from erjiang on Stack OverflowTry XML Tools. Plugins -> XML Tools -> Pretty Print (libXML) or (XML only - with line breaks Ctrl + Alt + Shift + B)
You may need to install XML Tools using your plugin manager in order to get this option in your menu.
In my experience, libXML gives nice output but only if the file is 100% correctly formed.
You need to install XML Tools from the Plugins menu item → Plugins Admin... → Plugins Admin dialog appears and then scroll to bottom of available plugins and check XML Tools, install it and then Ctrl + Alt + Shift + B OR the option for XML Tools above shows up.
Pretty print for XML tools not working.
Request/Question: xml-tool "pretty print - indent attributes" via commandline or in batch
Code Format Using Node Prettier in Notepad++
Notepad++ Python Script / Discussion / Script Showcase: Pretty Print XML (And HTML)
Videos
I am using xml tools pretty print to format xml files for testing. I have used it before with no issues. When I use pretty print it does nothing. No error message, nothing.
I have checked the file contains no errors, I have had a college run the file and it worked for them. I have uninstalled and reinstalled Notepad++ and the plugins. I'm at my wits end. Does anyone have any advice?