posted: Jun 3 2009

html tidy

first get it here.

wget the file over to your server.

then un-pack it and then run the following in the command line

make
make install

you might need to make a few directories on your server. because some the ones during the install process won’t be available.

after you are all finished, you can run tidy on any of your HTML files. it will search and clean up

here are a few commands you can use during the execution.
–more here–

Processing directives
——————–
  -indent or -i   indent element content
  -omit   or -o   omit optional endtags
  -wrap 72        wrap text at column 72 (default is 68)
  -upper  or -u   force tags to upper case (default is lower)
  -clean  or -c   replace font, nobr & center tags by CSS
  -numeric or -n  output numeric rather than named entities
  -errors or -e   only show errors
  -quiet or -q    suppress nonessential output
  -xml            use this when input is wellformed xml
  -asxml          to convert html to wellformed xml
  -slides         to burst into slides on h2 elements

Character encodings
——————
  -raw            leave chars > 128 unchanged upon output
  -ascii          use ASCII for output, Latin-1 for input
  -latin1         use Latin-1 for both input and output
  -iso2022        use ISO2022 for both input and output
  -utf8           use UTF-8 for both input and output
  -mac            use the Apple MacRoman character set

File manipulation
—————
  -config <file>  set options from config file
  -f <file>       write errors to named <file>
  -modify or -m   to modify original files

Miscellaneous
————
  -version or -v  show version
  -help   or -h   list command line options
You can also use blah for any config file option blah

Input/Output default to stdin/stdout respectively
Single letter options apart from -f may be combined
as in:  tidy -f errs.txt -imu foo.html

thanks more credit here

tidy



Your Ad Here





Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

Get Adobe Flash playerPlugin by wpburn.com wordpress themes