Tidy Binaries

Web developers

If you are comfortable using Tidy and the command prompt already, all you need is this exe. If you are a beginner you may want this installer that includes Dave Raggett’s overview and a quick reference to all of Tidy’s options.

Getting started

New to Tidy? Install one of the packages above, then open up a command (DOS) window. If you’re under Windows 2000/XP, you can find this under Start->All Programs->Accessories->Command Prompt. When it opens, run tidy -h to get a quick and dirty reference on how to use it. You can also check out Dave Raggett’s overview which is an excellent resource for beginners.

GUI versions

If you aren’t comfortable with the command line you can try out HTMLTrim or TidyUI. If you want a full web IDE tsWebEditor and TopStyle Pro both have Tidy integrated in them.

C/C++ programmers

The binaries below are all compiled with Visual C++ 2005, so the import libraries will only work for that compiler. A .def is included, and can be used to generate import libraries for your compiler (Visual C++ comes with lib.exe).

Hash table versions

For large documents, the hash table versions can be *much* faster. Tidying a complex ~40MiB XML document took 18 minutes to finish, while with the hash table version it took just 14 seconds. For small documents you won’t notice much difference. It comes with a catch though – if you declare new elements after a parsing run (via setting TidyBlockTags etc), it can break. As long as you don’t do that or just keep from re-using a TidyDoc, you are safe.

64-bit Versions

Using the same ~40MiB document as above, the 64-bit version is approximately 35% faster. This does, however, come with a tradeoff: it also uses roughly 25% more memory. Tidy is also widely untested on 64-bit Windows.

Note

These are no longer built on the vanilla Tidy sources- they include a patch to make them more friendly to DLLs. This also breaks any binary compatibility with builds prior to 02/23/05. The filenames have changed also, mainly to keep users from attempting to copy them over an old build. They are now tidy.dll, tidy.lib, and tidy.def.

Download

tidy-exe.zip Command-line EXE.

Other files

tidy-exe-x64.zip Command-line EXE for Windows x64 Edition.
tidy-dll.zip DLL with import library and headers.
tidy-dll-x64.zip DLL with import library and headers for Windows x64 Edition.
tidy-dll-fast.zip DLL with import library and headers. Uses hash tables.
tidy-dll-fast-x64.zip DLL with import library and headers for Windows x64 Edition. Uses hash tables.
tidy-src.zip Source code to build all above binaries.