code formatting - How do I format XML in Notepad++?

ID : 490

viewed : 165

Tags : notepad++code-formattingnotepad++





Top 5 Answer for code formatting - How do I format XML in Notepad++?

vote vote

99

Try Plugins -> XML Tools -> Pretty Print (libXML) or (XML only - with line breaks Ctrl + Alt + Shift + B)

You may need to install XML Tools using your plugin manager in order to get this option in your menu.

In my experience, libXML gives nice output but only if the file is 100% correctly formed.

vote vote

88

You need to install the XML tool from the Plugins menu item → Plugins Admin...Plugins Admin dialog appears and then scroll to bottom of available plugins and check the XML tools, install it and then Ctrl + Alt + Shift + B OR the option for XML Tool above shows up.

vote vote

80

Step 1: Install XML Tools plugin Step 2: Format ....completed 

enter image description here

vote vote

69

Try TextFX → TextFX Html Tidy → Tidy: reindent XML

If you can't try with Eclipse, do right button, source, and correct indent.

vote vote

57

Plugins -> XML Tools -> Pretty Print (libXML) or Ctrl+Alt+Shift+B

You probably need to install the plugin:

Plugins > Plugins Manager > Show Plugins Manager

If you are behind a proxy, download it from here.

Then copy XMLTools.dll to the plugins directory and external libraries (four dlls) into the root Notepad++ directory.

Top 3 video Explaining code formatting - How do I format XML in Notepad++?







Related QUESTION?