撸linux


UltraEdit的html tidy命令工具

HTML Tidy是一个很好的检查和精简HTML代码的实用程序格式,。由Dave Raggett开发并集成到UltraEdit。关于Html Tidy的更多信息可以在这里找到:http:// tidy.sourceforge.net/。

HTML Tidy也可以在工具栏通过点击HTML Tidy按钮打开HTML Tidy对话框。

定义一个新的配置文件,在配置文本字段输入文件的路径或按下“…”按钮,浏览到您想要使用的文件。请注意,该文件必须存在——指定一个不存在的配置文件,执行解析时将会导致错误。

按下回车键将保存指定的路径。按下“选项”按钮将HTML Tidy选项对话框。总结的配置选项可用于HTML Tidy请参见http://tidy.sourceforge.net/docs/quickref.html。

当HTML Tidy运行从格式菜单或按下解析按钮在HTML Tidy对话框中,将活动文档和HTML Tidy将解析该文件保存。输出窗口将被用来显示被发现的任何错误或警告。双击的错误或警告在输出窗口将光标定位在合适的文件中的行。

如果产生“整洁”文档在HTML tidy对话框中,选择HTML tidy将生成一个活跃的修正版本文件和文本编辑器将显示这个新文件/窗口标题为“* *输出HTML tidy * *”。一个新的“* *输出HTML Tidy * *”文件将创建每次使用HTML Tidy。如果这是选择和回写式选择,输出将被写回到原始文件窗口,但不保存更改到修改后的文件保存。如果既不回写也不产生“整洁”将创建文档选择没有输 出的HTML tidy过程。

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

原文:HTML Tidy command

HTML Tidy command

HTML Tidy is an excellent utility that formats, checks and tidies up HTML code.  This was developed by Dave Raggett and has been integrated into UltraEdit.  More information on HTML Tidy may be found at: http:// tidy.sourceforge.net/.

HTML Tidy may also be invoked by pressing the HTML Tidy button in the Tools toolbar and this will present the HTML Tidy dialog:

To define a new config file, type the path to the file in the Configuration text field or press the "..." button to browse to the file you wish to use.  Please note that this file must actually exist - specifying a config file that doesn't exist will cause an error when the parse is executed.

Pressing the Return button on the keyboard will save the specified path.  Pressing the Options button will present the HTML Tidy options dialog.  For a summary of the configuration options available for HTML Tidy please see http://tidy.sourceforge.net/docs/quickref.html.

When HTML Tidy is run from the Format menu or by pressing the Parse button in the HTML Tidy dialog, the active document will be saved and HTML Tidy will parse the file.  The output window will be used to display any errors or warnings that are found.  Double clicking on line with the error or warning in the output window will position the cursor to the appropriate line in the file.

If Generate "tidy" document is selected in the HTML Tidy dialog, HTML Tidy will generate a corrected version of the active file and UltraEdit will display this in a new file/window titled "** HTML Tidy Output **".  A new  "** HTML Tidy Output **" file will be created each time HTML Tidy is used.  If this is selected and Write-back is selected as well, the output would be written back to the original file window, but the changes aren't saved until the modified file is saved.  If neither Write-back nor  Generate "tidy" document are selected no output will be created from the HTML Tidy process.

相关博文



发表评论

电子邮件地址不会被公开。