gpt4 book ai didi

coda - 关闭标签后 HTML 整洁的新空行

转载 作者:行者123 更新时间:2023-12-04 20:15:45 27 4
gpt4 key购买 nike

当我使用 Tidy HTML in Coda它很干净,但我不喜欢空行

<ul>
<li>…</li>
<!-- here -->
<li>…</li>
</ul>

我尝试编辑配置但没有成功
// config file for Coda PHP Toolkit Tidy FORMAT script
// http://www.chipwreck.de/blog/software/coda-php
//
// documentation is here: http://tidy.sourceforge.net/#docs
// rev 5

anchor-as-name: no
doctype: auto
drop-empty-paras: no
fix-uri: no
literal-attributes: yes
merge-divs: no
merge-spans: no
numeric-entities: no
preserve-entities: yes
quote-ampersand: no
quote-marks: no
show-body-only: no
indent: auto
indent-spaces: 4
tab-size: 4
wrap: 0
wrap-asp: no
wrap-jste: no
wrap-php: no
wrap-sections: no
tidy-mark: no
new-blocklevel-tags: article,aside,command,canvas,dialog,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,meter
new-inline-tags: video,audio,canvas,ruby,rt,rp,time,meter,progress,datalist,keygen,mark,output,source,wbr

// Change these only if you need to debug a problem with Tidy
force-output: yes
quiet: yes
show-warnings: yes

我看到那个问题 How do I get HTML Tidy to not put newline before closing tags?但这对我没有帮助。

激活选项是什么?

此配置没有空行但没有缩进:
// config file for Coda PHP Toolkit Tidy FORMAT script
// http://www.chipwreck.de/blog/software/coda-php
//
// documentation is here: http://tidy.sourceforge.net/#docs
// rev 5

anchor-as-name: no
doctype: auto
drop-empty-paras: no
fix-uri: no
literal-attributes: yes
merge-divs: no
merge-spans: no
numeric-entities: no
preserve-entities: yes
quote-ampersand: no
quote-marks: no
show-body-only: no
indent: no
indent-spaces: 2
tab-size: 2
wrap: 0
wrap-asp: no
wrap-jste: no
wrap-php: no
wrap-sections: no
tidy-mark: no
new-blocklevel-tags: article,aside,command,canvas,dialog,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,meter
new-inline-tags: video,audio,canvas,ruby,rt,rp,time,meter,progress,datalist,keygen,mark,output,source,wbr

// Change these if you need to debug a problem with Tidy
force-output: yes
quiet: yes
show-warnings: yes

最佳答案

经过多次试验,我找到了不添加空行的正确设置:

indent: yes  // Indent for human readability. "yes" because "auto" adds blank lines.

关于coda - 关闭标签后 HTML 整洁的新空行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12843252/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com