How to build and install HTML Tidy

HTML Tidy is an old and classic program that can be used to fix errors and correct indentation of a HTML file.

It can be installed easily in Ubuntu:

$ sudo apt install tidy

However, the version from Ubuntu is extremely old and does not support HTML5. It is pretty pointless to install and use this ancient version today.

To download and build the latest HTML Tidy, try these commands:

$ git clone
$ cd tidy-html5
$ cd build/cmake
$ cmake ../..
$ cmake --build . --config Release

To install it:

$ sudo make install

Tried with: HTML Tidy 5.2.0 and Ubuntu 14.04

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.