Notepad++ HTML Tidy

前端 未结 9 817
北荒
北荒 2020-12-08 18:36

Is HTML Tidy for Notepad++ broken? None of the commands except Tidy (the first one) work. They don\'t show any message, even with all text selected. I really need Tidy to wo

相关标签:
9条回答
  • 2020-12-08 19:01

    I has this problem in Windows 7... the solution for me was to make sure that the permissions were properly set on HTMLTIDY.CFG

    0 讨论(0)
  • 2020-12-08 19:11

    Right-click Notepad++
    Run as administrator

    0 讨论(0)
  • 2020-12-08 19:14

    Am on v6.6.8 and this plugin worked well:

    https://code.google.com/p/npp-tidy2/downloads/list

    The ZIP pack has a dll file and a doc folder.

    Copy the dll to: %ProgramFiles%\Notepad++\plugins\ and extract the contents of doc to: %ProgramFiles%\Notepad++\plugins\doc\

    Restart N++ once you copy.

    Usage: Plugins > Tidy2 > ...

    By default, Tidy2 generates other HTML tags. You can prevent this by configuring output-xml: no and show-body-only: yes from Plugins > Tidy2 > Edit config...

    More on this at: Prevent tidy from adding html tags

    0 讨论(0)
  • 2020-12-08 19:15

    My guess is that you need to upgrade. I have Notepad++ 5.3.1 (Unicode). The TextFX HTML Tidy plugin works just fine, and the color picker—which used to give me the same problem as you describe—no longer locks up the Styler dialog.

    0 讨论(0)
  • 2020-12-08 19:17

    Windows 7-10 x64, Notepad++ 5.9.5 Solution:

    It has to do with the libTidy.dll not being included in the current distributions.
    However, it was available in earlier versions.

    Solution is to download the 5.9 zip, then
    copy one of the following folders:
    ansi\plugins\Config\tidy or Unicode\plugins\Config\tidy
    to your current Notepad++\plugins\Config folder

    Also, if you install to the c:\Program Files or c:\Program Files (x86) directories, you will need to adjust the permissions on the tidy folder to allow non-administrator access

    0 讨论(0)
  • 2020-12-08 19:17

    Here's a useful default HTMLTIDY.CFG, one that pretty-prints the HTML for you:

    // 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
    

    Taken from: http://sourceforge.net/p/notepad-plus/discussion/482781/thread/c6afffe0

    0 讨论(0)
提交回复
热议问题