Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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: image

share|improve this question

4 Answers 4

up vote 1 down vote accepted

Plugins -> XML Tools -> Pretty Print (XML only - with line breaks)

share|improve this answer
    
It seems that version 6.5 doesn't have this plugin :( –  St.Shadow Nov 29 '13 at 10:31

How about Plugins - XML Tools - Pretty Print (XML only - with line breaks)? Default shortcut Ctrl+Alt+Shift+B. This should make your XML very readable.

share|improve this answer

You will need TextFX plugin.

Then go for:

TextFX -> TextFX HTML Tidy -> Tidy: reindent XML

share|improve this answer
    
It is grayed out. It is not working but thanks. –  Love Jul 27 '12 at 21:09
    
What NPP version do you have? I had a problem with libtidy.dll. –  coelhudo Jul 27 '12 at 21:25

Better option is:

Plugins -> XML Tools -> Linarize XML

share|improve this answer
1  
Does not this function format the XML back to a single line (i.e. contrary to what was asked for)? –  pabouk Nov 7 '13 at 8:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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