Very often, working in NotePad++ , you have to manually tabulate the html file. In principle, it takes only 1-2 minutes, but some time is spent in total, which can be productively used for the benefit of work :)

Is there any function / plugin that automatically tabulates the html file?


For example:

 <!-- до --> <html> <head> <title> name </title> </head> <body> text </body> </html> 

 <!-- после --> <html> <head> <title> name </title> </head> <body> text </body> </html> 

    3 answers 3

    For writing code, you can use the NppAutoIndent plugin (quite conveniently), for automatic tabulation of files you can use the IdentByFold plugin.

    After installing the plugin - open the "bad file", click -

      Плагины->Ident By Fold->Reindent File 

    And the file becomes good =)

    • Thank you very much, I will try :) - Crasher
    • Use on health =) - Zowie
    • Another question: is it possible to configure what would be automatically processed by the Reindent File functions when pasting text from the clipboard? - Crasher
    • 3
      AlexWindHope, ***** THANK YOU !!! I updated the plugin manager and through it downloaded both plugins. I was looking for something similar, because before that, pieces of HTML had to be manually tabulated, and this is just 300-400 lines of code, not counting the text. Thanks again! - user7743
    • What the ... why am I trying to do a tabulation in the file by running the iddentbifold plug-in (as indicated in the second file example), and it does everything but vice versa, it aligns left without tabulation (as in the first code example) !!! - user19402

    https://indentbyfold.googlecode.com/files/IndentByFold-071.zip

    This is a direct link to the plugin.

    Put here: C: \ Program Files (x86) \ Notepad ++ \ Plugins \ or here:

    C: \ Program Files \ Notepad ++ \ Plugins.

      Auto-formatting html is evil. Especially when inline-blocks come across.