I have Notepad++ and XML Tools plugin installed. When I copy an XML file and paste it to the window. It became one line. How can I auo format it and make it readable?
Thanks.
The demo image likes:
5 Answers
Plugins -> XML Tools -> Pretty Print (XML only - with line breaks)
1How about Plugins - XML Tools - Pretty Print (XML only - with line breaks)? Default shortcut Ctrl+Alt+Shift+B. This should make your XML very readable.
If you don't find the plugin you want to use (eg.: XML Tools), just add it by clicking:
Plugins -> Plugin Manager -> Show Plugin ManagerFind, select and install it. When you re-open Notepad++, it'll be listed under the Plugins menu.
After that, do what they've already said: Plugins -> XML Tools -> Pretty Print (XML only - with line breaks)
You will need TextFX plugin.
Then go for:
2TextFX -> TextFX HTML Tidy -> Tidy: reindent XML
Better option is:
Plugins -> XML Tools -> Linarize XML
1