jump to content


Tidy It

Wish List

  1. Learn how to pass named parameters and then let people set their own tidy configuration file.
  2. Return only that stuff between BODY tags. That will make it a lot easier to hook it up to WYSIWYIG inline editors

Tidy Configuration File

// sample from Tidy home page
quiet: yes
clean: yes
indent: auto
indent-spaces: 2
wrap: 72
markup: yes
output-xml: no
input-xml: no
show-warnings: yes
numeric-entities: yes
quote-marks: yes
quote-nbsp: yes
quote-ampersand: no
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
// additional setting for Word 2000
word-2000:yes
// setting for kicking out font tags
drop-font-tags: yes
drop-empty-paras: yes