6 HTML Tidy with HTML5 support
10 background-color: #6495ed;
13 background-color: #e0ffff;
16 background-color: #b0c4de;
22 HTML Tidy with HTML5 support
30 git - http://git-scm.com/book/en/v2/Getting-Started-Installing-Git
35 cmake - http://www.cmake.org/download/
40 appropriate build tools for the platform
45 CMake comes in two forms - command line and gui. Some installations only install one or the
46 other, but sometimes both. The build commands below are only for the command line use.
49 Also the actual build tools vary for each platform. But that is one of the great features of
50 cmake, it can generate variuous 'native' build files. Running cmake without any parameters will
51 list the generators available on that platform. For sure one of the common ones is "Unix
52 Makefiles", which needs autotools make installed, but many other generators are supported.
55 In windows cmake offers various versions of MSVC. Again below only the command line use of MSVC
56 is shown, but the tidy solution (*.sln) file can be loaded into the MSVC IDE, and the building
60 Build the tidy library and command line tool
65 <code>cd build/cmake</code>
70 <code>cmake ../.. [-DCMAKE_INSTALL_PREFIX=/path/for/install]</code>
75 Windows: <code>cmake --build . --config Release</code>
77 Unix/OS X: <code>make</code>
84 Windows: <code>cmake --build . --config Release --target INSTALL</code>
86 Unix/OS X: <code>[sudo] make install</code>
91 By default cmake sets the install path to /usr/local in unix. If you wanted the binary in say
92 /usr/bin instead, then in 2. above use -DCMAKE<em>INSTALL</em>PREFIX=/usr
95 In windows the default install is to C:\Program Files\tidy5, or C:/Program Files (x86)/tidy5,
96 which is not very useful. After the build the tidy[n].exe is in the Release directory, and can
97 be copied to any directory in your PATH environment variable, for global use.
100 If you need the tidy library built as a 'shared' (DLL) library, then in 2. add the command
101 -DBUILD<em>SHARED</em>LIB:BOOL=ON. This option is OFF by default, so the static library is
102 built and linked with the command line tool for convenience.
108 This repository should be considered canonical for HTML Tidy as of 2015-January-15.
113 This repository originally transferred from <a href=
114 "http://w3c.github.com/tidy-html5/">w3c.github.com/tidy-html5</a>.
119 First moved to Github from <a href="http://tidy.sourceforge.net">tidy.sourceforge.net</a>.