HTML Tidy TIDYCFG.INI

None of the preset options in HTML Tidy were doing it for me, so I took a few minutes to create my own. They either mangled the code too much, or not enough. So, here is what I ended up with:


[EtdotTidy HTML]
indent: auto
indent-attributes:no
indent-spaces: 2
wrap: 0
wrap-asp:no
wrap-jste:no
wrap-php:no
show-warnings: yes
numeric-entities: yes
quote-marks: yes
quote-nbsp: yes
quote-ampersand: yes
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
fix-bad-comments:yes
fix-backslash:yes
write-back:yes

Just paste the code above into your TIDYCFG.INI file.

Be Sociable, Share!
You can leave a response, or trackback from your own site.

Leave a Reply