记事本++ HTML 整洁

发布于 2024-07-18 15:26:06 字数 230 浏览 3 评论 0原文

Notepad++ 的 HTML Tidy 是否已损坏? 除了 Tidy(第一个命令)之外,所有命令都不起作用。 即使选择了所有文本,它们也不显示任何消息。 我确实需要 Tidy 才能工作,或者这只是 N++ 最新版本的限制,或者缺乏支持?

此外,每当我从颜色对话框中选择颜色时,自定义语法对话框都会冻结。 在我单击粗体、斜体或下划线复选框之一之前,它一直保持无响应。 这是一个错误吗? 我如何解决它?

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 work, or is it just a limitation of the newest version of N++, or lack of support?

Also, the custom syntax dialog freezes whenever I select a color from the color dialog. It remains unresponsive until I click one of the bold, italic, or underline checkboxes. Is this a bug? How do I fix it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(9

陪你搞怪i 2024-07-25 15:26:06

Windows 7-10 x64、Notepad++ 5.9.5 解决方案:

这与当前发行版中未包含 libTidy.dll 有关。
但是,它在早期版本中可用。

解决方案是下载 5.9 zip,然后
复制以下文件夹之一:
ansi\plugins\Config\tidyUnicode\plugins\Config\tidy
到您当前的 Notepad++\plugins\Config 文件夹

此外,如果您安装到 c:\Program Files 或 c:\Program Files (x86) 目录,您将需要调整 tidy 文件夹的权限允许非管理员访问

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

无人接听 2024-07-25 15:26:06

除第一个选项外的所有菜单选项都会重写 HTMLTIDY.CFG 文件,该文件指定 HTML Tidy 使用的格式设置规则。 如果 HTMLTIDY.CFG 不存在,这些菜单选项可能不起作用。

创建一个文本文件并键入简单的指令,例如:

text-spaces: 2

将文件另存为 %ProgramFiles%htmltidy.cfg >\Notepad++\plugins\Config\tidy。 重新启动 Notepad++,所有选项都应该起作用。

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.

花想c 2024-07-25 15:26:06

我在 Windows 7 中遇到这个问题...我的解决方案是确保在 HTMLTIDY.CFG 上正确设置权限

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

爱的故事 2024-07-25 15:26:06

实际上,需要可写的是文件夹 (%ProgramFiles%\Notepad++\plugins\Config\tidy),而不仅仅是 TIDYCFG.INI。 这也将允许 Notepad++ 写入 HTMLTIDY.ERR。

给予“所有用户”(或计算机上的任何名称)对该文件夹的完全控制权,一切都会正常工作。

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.

ˉ厌 2024-07-25 15:26:06

我运行的是 Windows 7 和 Notepad++ 5.9。 有同样的问题。 解决方法:

  1. 为所有用户授予“C:\Program Files (x86)\Notepad++”文件夹的完全权限
  2. 在“C:\Program Files (x86)\Notepad++\plugins”下创建一个名为“Config”的新文件
  3. 夹下载此文件:http://jwaltonmedia.com/tools/tidy.zip。 它是“tidy”文件夹的压缩版本,
  4. 将压缩文件夹解压到您上面创建的“Config”文件夹中。 它应该创建一个名为“tidy”的文件夹

重新启动 Notepad++ 并且您应该已设置完毕。

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.

如歌彻婉言 2024-07-25 15:26:06

这是一个有用的默认 HTMLTIDY.CFG,它可以为您漂亮地打印 HTML:

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

取自: http://sourceforge.net/p/notepad-plus/discussion/482781/thread/c6afffe0

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

蓦然回首 2024-07-25 15:26:06

右键单击记事本++
以管理员身份运行

Right-click Notepad++
Run as administrator

橘和柠 2024-07-25 15:26:06

我使用的是 v6.6.8,这个插件运行良好:

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

ZIP 包包含一个 dll 文件和一个 doc 文件夹。

将 dll 复制到:%ProgramFiles%\Notepad++\plugins\
并将 doc 的内容提取到: %ProgramFiles%\Notepad++\plugins\doc\

复制后重新启动 N++。

用法:插件> 整洁2> ...

默认情况下,Tidy2 生成其他 HTML 标签。 您可以通过从插件>配置 output-xml: noshow-body-only: yes 来防止这种情况发生。 整洁2> 编辑配置...

更多信息:防止 tidy 添加 html 标签

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

无远思近则忧 2024-07-25 15:26:06

我的猜测是你需要升级。 我有 Notepad++ 5.3.1 (Unicode)。 TextFX HTML Tidy 插件工作得很好,并且颜色选择器(曾经给我带来了与您描述的相同的问题)不再锁定 Styler 对话框。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文