Go to file
Geoff McLane 83fe261d58 More informative output if onetest.cmd run singularly.
It was not intended that this cmd file be run separately. It is invoked by
alltest1.cmd which in turn is invoked by alltest.cmd. This 'chain' is
requierd to set up the appropriate environmnet variables.
2015-05-14 14:38:13 +02:00
build add 'install' of debug version also 2015-05-12 17:11:48 +02:00
console add small 'sample' API use, optional build 2015-02-07 15:33:13 +01:00
experimental new 2011-11-17 11:44:16 +09:00
include Issue #199 - Add support for html5's template tag 2015-04-10 15:50:07 -07:00
src For issue #212, retain mixed mode block parsing. 2015-05-13 12:35:06 +02:00
test More informative output if onetest.cmd run singularly. 2015-05-14 14:38:13 +02:00
.gitignore .gitignore cleanup 2015-02-14 13:55:39 +08:00
CMakeLists.txt Change relative path to absolute so cmake can be run anywhere. 2015-05-12 14:28:25 +02:00
LICENSE.md Changed license to markdown. 2015-02-13 10:35:14 +08:00
LICENSE.txt add txt and html, since md not supported by WiX (MSI) 2015-03-06 15:36:42 +01:00
README.html add txt and html, since md not supported by WiX (MSI) 2015-03-06 15:36:42 +01:00
README.md add link to WIP binaries to README.md 2015-04-25 20:37:35 +02:00
version.txt bump version for #212 fix 2015-05-13 12:37:20 +02:00

HTML Tidy with HTML5 support

Prerequisites

  1. git - http://git-scm.com/book/en/v2/Getting-Started-Installing-Git

  2. cmake - http://www.cmake.org/download/

  3. appropriate build tools for the platform

CMake comes in two forms - command line and gui. Some installations only install one or the other, but sometimes both. The build commands below are only for the command line use.

Also the actual build tools vary for each platform. But that is one of the great features of cmake, it can generate variuous 'native' build files. Running cmake without any parameters will list the generators available on that platform. For sure one of the common ones is "Unix Makefiles", which needs autotools make installed, but many other generators are supported.

In windows cmake offers various versions of MSVC. Again below only the command line use of MSVC is shown, but the tidy solution (*.sln) file can be loaded into the MSVC IDE, and the building done in there.

Build the tidy library and command line tool

  1. cd build/cmake

  2. cmake ../.. [-DCMAKE_INSTALL_PREFIX=/path/for/install]

  3. Windows: cmake --build . --config Release
    Unix/OS X: make

  4. Install, if desired:
    Windows: cmake --build . --config Release --target INSTALL
    Unix/OS X: [sudo] make install

By default cmake sets the install path to /usr/local in unix. If you wanted the binary in say /usr/bin instead, then in 2. above use -DCMAKE_INSTALL_PREFIX=/usr

In windows the default install is to C:\Program Files\tidy5, or C:/Program Files (x86)/tidy5, which is not very useful. After the build the tidy[n].exe is in the Release directory, and can be copied to any directory in your PATH environment variable, for global use.

If you need the tidy library built as a 'shared' (DLL) library, then in 2. add the command -DBUILD_SHARED_LIB:BOOL=ON. This option is OFF by default, so the static library is built and linked with the command line tool for convenience.

Prebuilt Binaries

An attempt is being made to publish pre-built binaries to http://www.htacg.org/binaries - This is still a work in progress, but getting there..

History

This repository should be considered canonical for HTML Tidy as of 2015-January-15.

; eof