The code beautifier uses HTMLTIDY, freely available at http://www.w3.org