Notepad++ HTML Tidy

前端 未结 9 818
北荒
北荒 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:19

    I am running Windows 7 and Notepad++ 5.9. Had the same issue. To resolve:

    1. Give Full Permission for all users to the "C:\Program Files (x86)\Notepad++" folder
    2. Make a new folder called "Config" under "C:\Program Files (x86)\Notepad++\plugins"
    3. Download this file: http://jwaltonmedia.com/tools/tidy.zip. It is a zipped version of the "tidy" folder
    4. Extract the zipped folder to the "Config" folder you created above. It should create a folder called "tidy"

    Restart Notepad++ and you should be set.

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

    It's actually the folder (%ProgramFiles%\Notepad++\plugins\Config\tidy) that needs to be writable, not only TIDYCFG.INI. This will allow Notepad++ to write HTMLTIDY.ERR also.

    Give "all users" (or whatever it's called on your machine) full control over the folder, and everything should work fine.

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

    All of the menu options except the first one rewrite the HTMLTIDY.CFG file, which specifies the formatting rules that HTML Tidy uses. If HTMLTIDY.CFG does not exist, these menu options may not work.

    Create a text file and type a simple instruction like:

    text-spaces: 2

    Save the file as htmltidy.cfg in %ProgramFiles%\Notepad++\plugins\Config\tidy. Restart Notepad++ and all of the options should work.

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