tidy-html5/README.md

60 lines
1.6 KiB
Markdown
Raw Normal View History

# HTML Tidy with HTML5 support
This repo is a fork of the code from [w3c.github.com/tidy-html5][3], which itself
is a fork of [tidy.sourceforge.net][1].
2011-11-17 02:58:38 +00:00
This source code in this version supports processing of HTML5 documents. The
changes for HTML5 support started from a [patch developed by Björn Höhrmann][2].
2011-11-17 02:58:38 +00:00
[1]: http://tidy.sourceforge.net
[2]: http://lists.w3.org/Archives/Public/www-archive/2011Nov/0007.html
For more information, see [w3c.github.com/tidy-html5][3]
[3]: http://w3c.github.com/tidy-html5/
2014-08-03 19:14:48 +00:00
## 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/OSX: make
4. Install, if desired
Windows: cmake --build . --config Release --target INSTALL
UNix/OSX: [sudo] make install
## Older/Previous Build systems
### Building the tidy command-line tool
For Linux/BSD/OSX platforms, you can build and install the `tidy` command-line
tool from the source code using the following steps.
2011-11-17 02:58:38 +00:00
1. `make -C build/gmake/`
2011-11-18 13:58:14 +00:00
2. `make install -C build/gmake/`
Note that you will either need to run `make install` as root, or with `sudo make
install`.
2014-08-03 19:14:48 +00:00
### Building the libtidy shared library
For Linux/BSD/OSX platforms, you can build and install the `tidylib` shared
library (for use in building other applications) from the source code using the
following steps.
1. sh build/gnuauto/setup.sh && ./configure && make
2. make install
2011-11-17 02:58:38 +00:00
Note that you will either need to run `make install` as root, or with `sudo make
install`.
;eof