html tidy (html 格式化)
来源:互联网 发布:巨杉数据库风投 编辑:程序博客网 时间:2024/05/22 10:56
配置文件:
bare: yes # remove proprietary HTML
doctype: auto # set the doctype
drop-empty-paras: yes # automatically delete empty <p> tags
fix-backslash: yes # replace by / in URLs
literal-attributes: yes # retain whitespace in attribute values
lower-literals: yes # convert attribute values to lower case
output-xhtml: yes # produce valid XHTML output
quote-ampersand: yes # replace & with &
quote-marks: yes # replace " with "
repeated-attributes: keep-last # use the last of duplicated attributes
indent: yes # automatically indent code
indent-spaces: 2 # number of spaces to indent by
wrap-php: no # wrap text contained in PHP tags
char-encoding: utf8 # character encoding to use
tidy-mark: no # omit Tidy meta information in corrected code
wrap: 200 # wrap text at column 72 (default is 68)
把上述配置保存到文件config.txt 中
应用:
./tidy -config config.txt < 输入.html > 输出.html
相关文章:
http://www.w3.org/People/Raggett/tidy/
- html tidy (html 格式化)
- HTML代码格式化 HTML Tidy Notepad++
- 网页格式化工具HTML Tidy兼谈eclipsetidy插件的安装
- HTML Tidy简介
- HTML Tidy中文手册
- 我的HTML Tidy 配置
- html tidy的一次运用
- HTML Tidy-HTML语言检查工具
- html 标签匹配检测/检验---------tidy
- 用 HTML Tidy 将 HTML 转换成 XML
- 用HTML Tidy将HTML转换为XML
- 技巧: 用 HTML Tidy 将 HTML 转换成 XML
- 用 HTML Tidy 将 HTML 转换成 XML
- 技巧: 用 HTML Tidy 将 HTML 转换成 XML
- HTML 格式化
- HTML格式化
- html格式化
- [HTML]sublime2 html格式化
- JAVA多语言
- ASP.NET2.0中将文件上传到数据库(copy from JREN)
- 2分钟亲密接触AutoCAD 2009
- Oracle 函數大全
- 自动生成statspack 报告
- html tidy (html 格式化)
- 如何使用gettext, po, mo制作多语言应用程序
- 十大负面测试用例
- IIS中身份验证方式
- 如何得到HP小型机的序列号
- javaScript對象簡介
- 海南英语111——Part 1: Greetings and Welcoming Conversation问候和欢迎
- VB.NET 数据快速导出到excel文件
- 数据导入导出