18

For a long time the TextFX plugin did the job for the Notepad++ 32-bit version via the menu TextFX > TextFX HTML Tidy > Tidy: Reindent XML.

In January 2012 Notepad++ v5.9.8 didn't include the plugin anymore, probably due to new support of Unicode, which the developer of TextFX didn't embrace soon enough, see N++ v5.9.8 changelog vs N++ v5.9.6 changelog and TextFX's Future

Later was introduced a 64-bit version of Notepad++ which didn't even include the Plugin Manager (because it was itself a plugin, developed by a third party developer).

Until recently. In April 2017, the developer of the NppPluginManager announced there was a build of a x64 version available:

Now the problems of either using an outdated 32-bit version of N++ with the TextFX plugin, or trying to install Tidy2 (or others) to more recent versions of N++ (but still x32!!), are gone!

3 Answers 3

26

Download the latest 64-bit x64 (stable) release of Notepad++ here: https://notepad-plus-plus.org/download/ (version 7.4.2 at the time of writing) and start the usual install.

Download the latest 64-bit x64 (stable) release of NppPluginManager here: https://github.com/bruderstein/nppPluginManager/releases

Unzip downloaded archive in the N++ directory (e.g. C:\Program Files\Notepad++) and run N++

Go to the menu Plugins > Plugin Manager > Show Plugin Manager. Wait for the list to refresh and scroll down to find the XML Tools plugin (at the time of writing this, it's version 2.4.9.2). Check the corresponding box and click Install.

Wait for the install to complete, then once prompted, choose to restart N++.

[ Maybe you'll have to confirmed that you want to copy/use some dlls anyway (like libcurl.dll and libxml2-2.dll - don't know why) ]

Then you're done: go to the Plugins menu then XML Tools and you'll find your usual commands you were familiar with in TextFX.

3
  • I can't find XML tools in the Notepad++ x64 plugin manager...I have npp v7.5.1
    – mortb
    Apr 5, 2018 at 13:29
  • I just updated N++ to the latest 7.5.6 (x64); plugin manager is at version 1.4.10.0 and it lists XML Tools with version 2.4.9.2
    – maxxyme
    Apr 6, 2018 at 15:01
  • Dropping the dll directly into the Notepad++ directory does not seem to work (Notepad 7.6.3), I had to create a directory "PluginManager" in "Notepad++/plugins" and then copy the dll into this directory.
    – Étienne
    Jul 11, 2019 at 9:06
3

I had the same issue with Notepad++ v 7.6 - could not install XML Tools. Updated the N++ to v 7.6.3 and after that XML Tools could be found in Plugin Manager's collection. Now everything works all right.

0

How to format a single line XML into a multiline XML in Notepad ++

Once you have Notepad ++ and XML Tools plugin then the below is available:

NP++ menu options : Plugins | XML Tools | Pretty print (XML only – with line breaks) [Ctrl+Alt_Shift+B]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.