How to format a document in Notepad ++

I noticed other questions about Notepad ++ on this site, so I figured this was the right place to ask. Mods, if this is not a suitable place, please relocate.

How do you format your document in Notepad ++? I'm looking for something similar to Visual Studio Edit> Advanced> Document Format

I have a large XML document that is on one line, I would like it to be formatted with appropriate indents / spaces and only one element per line.

Edit: Use stock version 5.9.5 without plugins.

+3


source to share


2 answers


Download XML Tools plugin from NotePad ++ -> Plugins-> XML Tools. Use the Ctrl+ Alt+ Shift+ Bto format your XML-document ..



+2


source


+1 for XML tools.

You can load the plugin from the plugin manager and then use ":

  • Plugins> Connection Manager> Show Connection Manager
  • Select XML tools and install
  • Plugins> XML Tools> Pretty Print (XML only - with line breaks).


This matches the Ctrl+ Alt+ Shift+ shortcut B.

If that doesn't work with your version of Notepad ++ (damn you have an old old one!), You can download the plugin and install it yourself:

+2


source







All Articles