I've written a little .js script that formats an XML document so it's more readable.
I can run the script from the Run menu using CScript.exe, so it pops up a window while running the script, then gives back focus to Np++ — which then asks whether the file should be reloaded. This works fine, but it breaks the undo chain: I can't undo past the reformatting action, since the file is actually reloaded.
How difficult would it be to write an XML formatter as a plug-in? Would anybody here be willing to undertake that?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
I've written a little .js script that formats an XML document so it's more readable.
I can run the script from the Run menu using CScript.exe, so it pops up a window while running the script, then gives back focus to Np++ — which then asks whether the file should be reloaded. This works fine, but it breaks the undo chain: I can't undo past the reformatting action, since the file is actually reloaded.
How difficult would it be to write an XML formatter as a plug-in? Would anybody here be willing to undertake that?
Please see check XML Tools on :
http://notepad-plus.sourceforge.net/uk/download.php
Don
Hooray! That's exactly what I was looking for, thanks!
I'd installed most plug-ins, but I guess I mixed up this one with XMLCheck...