Menu

xml source indent functionality

Yevgen
2007-06-11
2012-11-14
  • Yevgen

    Yevgen - 2007-06-11

    Hello!

    First of all, Thank you! Notepad++ is really great application.

    Next functionality will be really useful.
    Xml source code indent(aligment).

    For example, exist file or clipboard copy with something like this:
    <source><block p="1"><var name="b">Value</var><var name="a">Hello</var></block></source>

    Result is a indent text, such:
    <source>
      <block p="1">
        <var name="b">Value</var>
        <var name="a">Hello</var>
      </block>
    </source>

    Thank you!

     
    • Josh Mueller

      Josh Mueller - 2007-06-11

      The XML Tools plugin does this. It can be found in the plugins section of the download page (http://notepad-plus.sourceforge.net/uk/download.php).

      To use it: Plugins > XML Tools > Pretty print (XML only with - with line breaks)

       
      • Yevgen

        Yevgen - 2007-06-12

        That plugin can process just whoole file data. :(
        Is this possible to change it behaviour a little.

        Such, if no selection plugin command will be related for whole file data.
        If selected some part so just that part will be processed.

        In my case I have to work with log output. It includes mix of text and xml parts.
        So, xml indent functionality for piece of file content is needed.

        Thank you!

         
    • Yevgen

      Yevgen - 2007-06-12

      Thank you!