The latest HTML Tidy has much goodness that the version that ships with Snow Leopard is missing. You’ll need to compile it to update your binary. It’s simple after you’ve done it once and easy to forget, so I’m documenting it this time.
- Test version
- Load Terminal
- tidy –version
- “HTML Tidy for Mac OS X released on 31 October 2006 – Apple Inc. build 15.3″
- No good, should say at least “HTML Tidy for Mac OS X released on 25 March 2009″
- Download the source code:
- cd to a directory you can track for cleanupcvs -z3 -d:pserver:anonymous@tidy.cvs.sourceforge.net:/cvsroot/tidy co -P tidy
- cvs -d:pserver:anonymous@tidy.cvs.sourceforge.net:/cvsroot/tidy login
- Hit the enter key for password, i.e., no password
- cvs -z3 -d:pserver:anonymous@tidy.cvs.sourceforge.net:/cvsroot/tidy co -P tidy
- This will create a directory, “tidy” in your current directory
- Compile
- cd into the tidy directory
- /bin/sh build/gnuauto/setup.sh
- sudo ./configure –prefix=/usr
- Reader Stephanie recommends adding “–with-shared // at least on Lion”
- sudo make
- sudo make install
- If you error, may the Google search engine be your best friend.
- Test version
- tidy –version
- HTML Tidy for Mac OS X released on 25 March 2009
- tidy –version
- Delete the “tidy” directory
- Wow that was easy.

hey
That really helpful post. It’s work on my computer again
Great Thanks
Helped me too, thanks.
Working Great! :)
I had a problem downloading the code from the CVS repository so just downloaded the tarball from http://tidy.cvs.sourceforge.net/viewvc/tidy/?view=tar
Also had to run configure differently (with 2 hyphens)
sudo ./configure –prefix=/usr