tidy-html5/README.md

45 lines
1.6 KiB
Markdown
Raw Normal View History

2015-02-27 11:53:53 +00:00
# HTML Tidy with HTML5 support
2015-02-12 12:11:06 +00:00
2015-02-27 11:53:53 +00:00
## Prerequisites
2015-02-12 12:11:06 +00:00
2015-02-27 11:53:53 +00:00
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.
2011-11-17 02:58:38 +00:00
2015-02-27 11:53:53 +00:00
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 paramaters 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.
2011-11-17 02:58:38 +00:00
2015-02-27 11:53:53 +00:00
In windows cmake offers various versions of MSVC. Again below only the command line use of MSVC is shown, but the tiyd solution (*.sln) file can be loaded into the MSVC IDE, and the building done in there.
2011-11-17 02:58:38 +00:00
## Build the tidy library and command line tool
2012-03-15 02:49:03 +00:00
1. `cd build/cmake`
2012-03-15 02:49:03 +00:00
2. `cmake ../.. [-DCMAKE_INSTALL_PREFIX=/path/for/install]`
3. Windows: `cmake --build . --config Release`
Unix/OS X: `make`
2011-11-17 02:58:38 +00:00
4. Install, if desired:
Windows: `cmake --build . --config Release --target INSTALL`
Unix/OS X: `[sudo] make install`
2011-11-17 02:58:38 +00:00
2011-11-18 13:58:14 +00:00
## History
2011-11-17 02:58:38 +00:00
This repository should be considered canonical for HTML Tidy as of 2015-January-15.
- This repository originally transferred from [w3c.github.com/tidy-html5][1].
- First moved to Github from [tidy.sourceforge.net][2].
[1]: http://w3c.github.com/tidy-html5/
2014-08-03 19:14:48 +00:00
[2]: http://tidy.sourceforge.net