2012-10-11 64 views
5

當我使用Tidy HTML in Coda這是乾淨的,但我不喜歡有空行HTML Tidy的新的空行

<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 

回答

0

我建議增加

vertical-space: no 

即使這應該是默認設置。

這是否解決了問題?

+0

沒有...... 我添加其他的配置,但沒有縮進我的帖子... –

1

我有同樣的問題。 Here一分鐘內我寫的一個小插件(15kb)解決了這個問題。

+0

它不工作對我來說...這尾你使用的版本是? – Slevin

+0

我使用Coda 2.0.6 –

4

多嘗試後,我找到了正確的設置不添加空行:

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