How to format a document in Notepad ++
I noticed other questions about Notepad ++ on this site, so I figured this was the right place to ask. Mods, if this is not a suitable place, please relocate.
How do you format your document in Notepad ++? I'm looking for something similar to Visual Studio Edit> Advanced> Document Format
I have a large XML document that is on one line, I would like it to be formatted with appropriate indents / spaces and only one element per line.
Edit: Use stock version 5.9.5 without plugins.
+3
source to share
2 answers
+1 for XML tools.
You can load the plugin from the plugin manager and then use ":
- Plugins> Connection Manager> Show Connection Manager
- Select XML tools and install
- Plugins> XML Tools> Pretty Print (XML only - with line breaks).
This matches the Ctrl+ Alt+ Shift+ shortcut B.
If that doesn't work with your version of Notepad ++ (damn you have an old old one!), You can download the plugin and install it yourself:
- Go to http://sourceforge.net/projects/npp-plugins/files/XML%20Tools/
- Place the dll file in / plugins
- Restart Notepad ++ and what it is
+2
source to share