tidy

pg133
2006-02-08
2012-11-14
  • pg133
    pg133
    2006-02-08

    Some tips when using tidy with NPP/Notepad++ v3.4

    The tidy.dll found in http://tidy.sourceforge.net/#binaries does not work with NPP and give an error message.

    However, I found a version that works it can be downloaded from here:
    http://www.paehl.com/open_source/?HTML_Tidy_for_Windows

    You need to rename from tidy.dll to libtidy.dll anf put it into the plugin directory Notepad++\plugins\NPPTextFX

    You might also want ot create a default HTMLTIDY.CFG

    // sample config file for HTML tidy
    indent: auto
    indent-spaces: 2
    wrap: 72
    markup: yes
    output-xml: no
    input-xml: no
    show-warnings: yes
    numeric-entities: yes
    quote-marks: yes
    quote-nbsp: yes
    quote-ampersand: no
    break-before-br: no
    uppercase-tags: no
    uppercase-attributes: no
    char-encoding: latin1
    new-inline-tags: cfif, cfelse, math, mroot,
      mrow, mi, mn, mo, msqrt, mfrac, msubsup, munderover,
      munder, mover, mmultiscripts, msup, msub, mtext,
      mprescripts, mtable, mtr, mtd, mth
    new-blocklevel-tags: cfoutput, cfquery
    new-empty-tags: cfelse

     
    • The tidy executable is not included in the Notepad++ download to keep the size smaller. There is a commonly available libTidy.DLL that works but is a few years old. The NPPTextFX plugin sources include projects to build HTML Tidy from Sourceforge sources.

      libTidy.DLL and the necessary files to produce a full featured menu are in the downloads on the NPPTextFX download page.

      ftp://isisbst.no-ip.com/PRIVATE/NPPTextFX.htm

       
      • i 've tried to download the tidy dll from the given site for a few times... but i always get a timeout error... could you fix that or provide an alternate link..

        thanx a lot,

        franz

         
    • The computer at that site went down and I had no way to get it back up nor did I want to move the domain name. I have made a domain for textfx that I can move any time necessary. You can get the files at

      http://textfx.no-ip.com/textfx/

      Just making a .CFG file will work Tidy with a single configuration. The files at the above site will produce a menu of many different tidy configurations that you can add your own variants to.

       
      • I have tried several locations to download libTidy.DLL.  Can someone please post a URL for downloading this file?

        Thank you.
        yovation