How do I format XML in Notepad++?

后端 未结 20 2660
不思量自难忘°
不思量自难忘° 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条回答
  •  猫巷女王i
    2020-11-27 09:14

    If your XML is imperfect, try this with the TextFX Characters plugin (install from Plugin manager):

    First, find a ">" to copy into the clipboard. Then select ALL your text, and then...

    On the main menu: TextFX -> TextFX Edit -> Solit lines at clipboard char...

    This will do a reasonable job, not perfect, but things will be readable, at least.

    I had to do this with XML code stored in an SQL Server database, where the headers weren't stored, just the XML body...

提交回复
热议问题