Menu

reindenting html code

2007-09-09
2012-11-13
  • Nobody/Anonymous

    Hello guys,

    is there any way I could re-indent html code files. I need it badly.

    Thanks

     
    • CodeNexus

      CodeNexus - 2007-09-09

      Is this plugin installed by default??  It keeps beeping loudly at me and says something about "can't find HTMLTIDY.CFG" and "using defaults".  Then it doesn't seem to tidy it just adds some html headers etc.

      Any clues or is this behaving as it is supposed to??

       
      • Jonu Dslugo

        Jonu Dslugo - 2008-12-04

        For future users who is still wondering..
        Use this link and follow the insructions..
        http://notepad-plus.wiki.sourceforge.net/HTML+Tidy

        HTH.

         
    • Douglas B Kaynor

      Check out http://tidy.sourceforge.net/ for a tool that will do this for free. Also it comes as a plug in under the textfx menu.

       
    • Ross McKay

      Ross McKay - 2007-09-09

      Use the HTML Tidy tools in the TextFX plug-in. You'll need to setup a tidycfg.ini file in the folder {Notepad++}\plugins\NPPTextFX - you can grab a sample one from here:

      http://listes.admisource.gouv.fr/pipermail/atelier-dev-commits/2007-January/003353.html

       
      • Ross McKay

        Ross McKay - 2007-09-10

        OK, I've just added a simple page about this on the wiki:

        http://notepad-plus.wiki.sourceforge.net/HTML+Tidy

        It'd be good if others could embellish with more information as they see fit.

         
    • Nobody/Anonymous

      Thanks a lot webaware, this is very useful.

       
    • Chris Severance

      Chris Severance - 2007-10-01

      HTMLTidy isn't included in the normal download to keep the Notepad++ download size small for the bulk of users who have no need for it. The binary download binary from my page includes the complete HTMLTidy addon which you can further tailor to your needs.

      http://textfx.no-ip.com/textfx (it will be back up in a few hours)

       
      • Don HO

        Don HO - 2007-10-01

        Chris,

        Nice to hear from you :)

        > HTMLTidy isn't included in the normal download to keep the Notepad++ download size
        > small for the bulk of users who have no need for it.

        I confirm that the HTMLTidy comes with Notepad++ official release since (at least) v4.X.
        It is located in plugins\NPPTextFX directory.

        Don