How do I format XML in Notepad++?

后端 未结 20 2656
不思量自难忘°
不思量自难忘° 2020-11-27 08:40

I have Notepad++ and I got some XML code which is very long. When I pasted it in Notepad++ there was a long line of code (difficult to read and work with).

I want to

20条回答
  •  悲哀的现实
    2020-11-27 09:16

    Since I see lots of comments about people having problems with the plugin, I thought I'd mention the work around that I use.

    I just use one of the online sites for XML viewing (I use https://codebeautify.org/xmlviewer, but there are plenty out there) as follows:

    1. Paste the XML content in the input window
    2. Click the "Beautify / Format" button
    3. Copy formatted XML output from the result window
    4. Paste in Notepad++

    I don't know if it qualifies as answering the OP's question exactly, but it's very simple and easy for anyone who is having problems with the plugin.

提交回复
热议问题