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 Overflow
🌐
Notepad++ Community
community.notepad-plus-plus.org › topic › 22501 › xml-plugin-pretty-print
XML Plugin - Pretty Print | Notepad++ Community
February 7, 2022 - Plugins > XML Tools > Pretty Print still only affects the active XML I even opened a second XML file, and ran the Pretty Print in the first: it still only affects the active XML, and not the second XML or the JSON.
🌐
Notepad++ Community
community.notepad-plus-plus.org › topic › 20233 › xml-pretty-print-and-html
XML Pretty Print and HTML | Notepad++ Community
April 21, 2021 - The official archive for that plugin (https://code.google.com/p/npp-tidy2/) only has an ancient 32-bit version, so Notepad++ Plugins Admin has nothing there to link to for 64-bit.) The other link that @andrecool-68 provided (https://github.com/geoffmcl/NppTidy2/releases/) is a fork (unofficial modified version) of the original, and has provided a 32-bit and 64-bit zipfiles. However, that is not the official location, and you will have to install manually from there. To do that, download the appropriate .7z archive, unzip, and place the DLL in your 64-bit C:\program files\Notepad++\plugins\Tidy2\Tidy2.dll (or other appropriate folder if you didn’t install Notepad++ in the default location)
🌐
SourceForge
sourceforge.net › home › open source software › text editors › notepad++ plugins › files
Notepad++ Plugins - Browse /XML Tools/Xml Tools 2.4.9 Unicode at SourceForge.net
Release 2.4.9.2 --------------- ... Release 2.4.9.1 --------------- - Patch pretty print function error which occurred when text contains "='" sequence Release 2.4.9 ------------- - Compilation of 64bit version of the plugin - Fix pretty print with attributes and/or text ...
🌐
GitHub
github.com › notepad-plus-plus › notepad-plus-plus › issues › 9907
Notepad ++ and Pretty Print (XML Only with Line Breaks) not working · Issue #9907 · notepad-plus-plus/notepad-plus-plus
May 25, 2021 - Get the following error: Errors detected in content. please correc them before applying pretty print ... Notepad++ v7 (32-bit) Build time : Sep 21 2016 - 22:00:56 Path : C:\Program Files (x86)\Notepad++\notepad++.exe Admin mode : OFF Local Conf mode : OFF OS : Windows 10 Plugins : mimeTools.dll NppConverter.dll NppExport.dll PluginManager.dll XMLTools.dll
Published   May 25, 2021
🌐
Notepad++ Community
community.notepad-plus-plus.org › topic › 21133 › xml-tools-plugin-can-t-get-pretty-print-feature-to-work
XML Tools Plugin - Can't get Pretty Print feature to work | Notepad++ Community
May 6, 2021 - I am on a different computer right now, with same version of NP++ and XML Tools installed. I just copied the XML code you provided and pasted it in NP++ then selected Plugins --> XML Tools --> Pretty Print and it worked fine, then I toggled several times between Linearize and Pretty Print and it all went smooth.
🌐
GitHub
github.com › morbac › xmltools
GitHub - morbac/xmltools: XML Tools plugin for Notepad++ · GitHub
The plugin features are: XML syntax ... System Type (32Bit or 64Bit) Create a folder XMLTools within Notepad++\Plugins (Typically C:\Program Files\Notepad++\plugins) and copy the XMLTools.dll there ·...
Author   morbac
🌐
Notepad++ Community
community.notepad-plus-plus.org › topic › 10902 › pretty-print-plug-in
"Pretty Print" plug-in | Notepad++ Community
December 2, 2015 - Similar to the following VB printer/documenter: http://www[dot]hallogram[dot]com/pretty/
Find elsewhere
🌐
Notepad++ Community
community.notepad-plus-plus.org › topic › 21892 › xml-tools-plugin-pretty-print-not-working-is-it-the-file
XML Tools Plugin: "Pretty Print" not working- is it the file? | Notepad++ Community
August 7, 2023 - If I have an XML that looks like and use Plugins > XML Tools > Pretty Print, it looks like when done, which is what I’d expect. I’m using XML Tools Plugin 3.1.1.6-64bit with NPP v8.1.4-64bit.
🌐
Herongyang
herongyang.com › XML › NPP-XML-Tools-Plugin-Pretty-Print-Format.html
Converting XML in Pretty Print Format
This section provides a tutorial example on how to convert XML documents into pretty print format using XML Tools Plugin in Notepad++.
🌐
Techtown
atechtown.com › home › text editors › xml tools plugin for notepad++ – features, download, how to install
XML Tools Plugin for Notepad++ - Features, Download, How to Install - Techtown
December 27, 2022 - In this method, you have to download the plugin files and then copy the files to the Notepad++ plugins folder. ... Copy XMLTools.dll file to NPP plugin subfolder. In my case C:\Program Files (x86)\Notepad++\plugins ...
🌐
GitHub
github.com › molsonkiko › JsonToolsNppPlugin
GitHub - molsonkiko/JsonToolsNppPlugin: A Notepad++ plugin providing tools for JSON like linting, querying, a tree view, and CSV conversion. · GitHub
If you have any issues, see if updating to the latest release helps, and then feel free to raise an issue on GitHub. Please be sure to include diagnostic information about your system, Notepad++ version, and plugin version (go to ?->Debug Info... from the Notepad++ main menu). Pretty-print JSON ...
Author   molsonkiko
🌐
Notepad++ Community
community.notepad-plus-plus.org › topic › 22803 › is-there-an-plugin-which-is-able-to-do-pretty-print-for-shell-bash
Is there an plugin which is able to do pretty print for shell/bash? | Notepad++ Community
February 21, 2023 - Scheduled Pinned Locked Moved Notepad++ & Plugin Development ... This topic has been deleted. Only users with topic management privileges can see it. ... I have the 64-bit x64 Version installed. The following plugins are able to do it for these languages: ... Thank you in advance. ... I do not know of such a plugin directly. However, as a workaround: using the NppExec plugin, you can call any external pretty-print ...
🌐
SourceForge
sourceforge.net › home › open source software › text editors › notepad++ plugins › files
Notepad++ Plugins - Browse /XML Tools/Xml Tools 2.4.2 r1057 Unicode at SourceForge.net
- Add shortcut CTRL+ALT+SHIFT+B to "Pretty Print w/ line breaks" function. - Add new function "Evaluate XPath expression" - Fix the non-modal error messages; error messages are now in modal mode so they always appear in foreground. - Change "XML syntax auto-check" trigger to NPPN_FILEBEFORESAVE notification; this avoid having auto-check executed during edition. - Add XML Tools plugin installer; this tool copies the plugin into Notepad...
🌐
Anitha Eswaran
anithasantosh.wordpress.com › 2022 › 11 › 08 › install-xml-formatter-in-notepad
Install XML formatter in notepad ++ | Anitha Eswaran – Dynamics Ax
November 8, 2022 - In order to view the xml data in proper format, notepad++ should have proper plugin installed. If the plugin is installed, the user will be able to format that data to XML format from · Plugins-> XML Tools ->Pretty Print /Pretty Print(indent option)