Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 10-Jul-2021 | - | ||||
LICENSE | H A D | 10-Jul-2021 | 1.5 KiB | 25 | 22 | |
Makefile.am | H A D | 10-Jul-2021 | 1.6 KiB | 66 | 55 | |
Makefile.in | H A D | 10-Jul-2021 | 74.3 KiB | 1,236 | 1,104 | |
README.md | H A D | 10-Jul-2021 | 3.3 KiB | 43 | 23 | |
attributes.h | H A D | 10-Jul-2021 | 482 | 36 | 31 | |
background.cpp | H A D | 10-Jul-2021 | 1.8 KiB | 80 | 71 | |
background.h | H A D | 10-Jul-2021 | 1.1 KiB | 59 | 51 | |
borders.h | H A D | 10-Jul-2021 | 5.8 KiB | 301 | 267 | |
box.cpp | H A D | 10-Jul-2021 | 8 KiB | 435 | 373 | |
box.h | H A D | 10-Jul-2021 | 3.2 KiB | 121 | 105 | |
context.cpp | H A D | 10-Jul-2021 | 305 | 13 | 9 | |
context.h | H A D | 10-Jul-2021 | 292 | 21 | 17 | |
css_length.cpp | H A D | 10-Jul-2021 | 1 KiB | 55 | 49 | |
css_length.h | H A D | 10-Jul-2021 | 2.3 KiB | 136 | 118 | |
css_margins.h | H A D | 10-Jul-2021 | 551 | 40 | 32 | |
css_offsets.h | H A D | 10-Jul-2021 | 551 | 40 | 32 | |
css_position.h | H A D | 10-Jul-2021 | 537 | 40 | 32 | |
css_selector.cpp | H A D | 10-Jul-2021 | 6 KiB | 267 | 245 | |
css_selector.h | H A D | 10-Jul-2021 | 5.1 KiB | 279 | 230 | |
document.cpp | H A D | 10-Jul-2021 | 21.3 KiB | 931 | 825 | |
document.h | H A D | 10-Jul-2021 | 4.4 KiB | 134 | 117 | |
el_anchor.cpp | H A D | 10-Jul-2021 | 581 | 32 | 25 | |
el_anchor.h | H A D | 10-Jul-2021 | 368 | 20 | 15 | |
el_base.cpp | H A D | 10-Jul-2021 | 309 | 19 | 13 | |
el_base.h | H A D | 10-Jul-2021 | 289 | 19 | 14 | |
el_before_after.cpp | H A D | 10-Jul-2021 | 4 KiB | 201 | 185 | |
el_before_after.h | H A D | 10-Jul-2021 | 948 | 42 | 33 | |
el_body.cpp | H A D | 10-Jul-2021 | 263 | 18 | 13 | |
el_body.h | H A D | 10-Jul-2021 | 286 | 19 | 14 | |
el_break.cpp | H A D | 10-Jul-2021 | 239 | 19 | 12 | |
el_break.h | H A D | 10-Jul-2021 | 293 | 19 | 14 | |
el_cdata.cpp | H A D | 10-Jul-2021 | 370 | 26 | 20 | |
el_cdata.h | H A D | 10-Jul-2021 | 372 | 21 | 16 | |
el_comment.cpp | H A D | 10-Jul-2021 | 384 | 26 | 20 | |
el_comment.h | H A D | 10-Jul-2021 | 384 | 21 | 16 | |
el_div.cpp | H A D | 10-Jul-2021 | 363 | 24 | 17 | |
el_div.h | H A D | 10-Jul-2021 | 283 | 19 | 14 | |
el_font.cpp | H A D | 10-Jul-2021 | 1.1 KiB | 61 | 51 | |
el_font.h | H A D | 10-Jul-2021 | 289 | 19 | 14 | |
el_image.cpp | H A D | 10-Jul-2021 | 5.6 KiB | 256 | 210 | |
el_image.h | H A D | 10-Jul-2021 | 704 | 27 | 21 | |
el_link.cpp | H A D | 10-Jul-2021 | 845 | 45 | 35 | |
el_link.h | H A D | 10-Jul-2021 | 301 | 20 | 15 | |
el_para.cpp | H A D | 10-Jul-2021 | 400 | 24 | 18 | |
el_para.h | H A D | 10-Jul-2021 | 290 | 20 | 14 | |
el_script.cpp | H A D | 10-Jul-2021 | 500 | 31 | 21 | |
el_script.h | H A D | 10-Jul-2021 | 429 | 22 | 17 | |
el_space.cpp | H A D | 10-Jul-2021 | 691 | 40 | 34 | |
el_space.h | H A D | 10-Jul-2021 | 382 | 21 | 16 | |
el_style.cpp | H A D | 10-Jul-2021 | 594 | 37 | 27 | |
el_style.h | H A D | 10-Jul-2021 | 436 | 22 | 17 | |
el_table.cpp | H A D | 10-Jul-2021 | 2.7 KiB | 109 | 92 | |
el_table.h | H A D | 10-Jul-2021 | 485 | 28 | 21 | |
el_td.cpp | H A D | 10-Jul-2021 | 858 | 50 | 40 | |
el_td.h | H A D | 10-Jul-2021 | 277 | 19 | 14 | |
el_text.cpp | H A D | 10-Jul-2021 | 3.9 KiB | 189 | 168 | |
el_text.h | H A D | 10-Jul-2021 | 1.2 KiB | 39 | 33 | |
el_title.cpp | H A D | 10-Jul-2021 | 347 | 21 | 15 | |
el_title.h | H A D | 10-Jul-2021 | 307 | 20 | 15 | |
el_tr.cpp | H A D | 10-Jul-2021 | 1 KiB | 52 | 42 | |
el_tr.h | H A D | 10-Jul-2021 | 344 | 20 | 15 | |
element.cpp | H A D | 10-Jul-2021 | 16.1 KiB | 410 | 380 | |
element.h | H A D | 10-Jul-2021 | 12.7 KiB | 404 | 339 | |
html.cpp | H A D | 10-Jul-2021 | 3.7 KiB | 170 | 155 | |
html.h | H A D | 10-Jul-2021 | 4.1 KiB | 97 | 86 | |
html_tag.cpp | H A D | 10-Jul-2021 | 110.6 KiB | 4,664 | 4,132 | |
html_tag.h | H A D | 10-Jul-2021 | 10.5 KiB | 249 | 212 | |
iterators.cpp | H A D | 10-Jul-2021 | 1.8 KiB | 95 | 82 | |
iterators.h | H A D | 10-Jul-2021 | 1.4 KiB | 91 | 74 | |
litehtml.h | H A D | 10-Jul-2021 | 278 | 13 | 10 | |
media_query.cpp | H A D | 10-Jul-2021 | 9 KiB | 433 | 402 | |
media_query.h | H A D | 10-Jul-2021 | 1.7 KiB | 78 | 65 | |
os_types.h | H A D | 10-Jul-2021 | 1.9 KiB | 88 | 63 | |
style.cpp | H A D | 10-Jul-2021 | 22.1 KiB | 657 | 597 | |
style.h | H A D | 10-Jul-2021 | 2 KiB | 96 | 82 | |
stylesheet.cpp | H A D | 10-Jul-2021 | 5.1 KiB | 220 | 198 | |
stylesheet.h | H A D | 10-Jul-2021 | 1.1 KiB | 55 | 40 | |
table.cpp | H A D | 10-Jul-2021 | 12.9 KiB | 567 | 502 | |
table.h | H A D | 10-Jul-2021 | 4.9 KiB | 242 | 216 | |
types.h | H A D | 10-Jul-2021 | 15.4 KiB | 737 | 620 | |
utf8_strings.cpp | H A D | 10-Jul-2021 | 1.9 KiB | 98 | 79 | |
utf8_strings.h | H A D | 10-Jul-2021 | 922 | 52 | 47 | |
web_color.cpp | H A D | 10-Jul-2021 | 7.3 KiB | 257 | 246 | |
web_color.h | H A D | 10-Jul-2021 | 1.1 KiB | 62 | 52 |
README.md
1#What is litehtml? 2 3**litehtml** is the lightweight HTML rendering engine with CSS2/CSS3 support. Note, **litehtml** itself does not draw any text, pictures or other graphics and **litehtml** does not depend of any image/draw/font library. You are free to use any library to draw images, fonts and any other graphics. **litehtml** just parses HTML/CSS and places the HTML elements into right position (renders HTML). To draw the html elemens you have to implement the simple callback interface [document_container](https://github.com/litehtml/litehtml/wiki/document_container). This interface is really simple, check it! Note, the [document_container](https://github.com/litehtml/litehtml/wiki/document_container) implementation is required to render HTML correctly. 4 5#Where litehtml can be used 6 7**litehtml** can be used when you need to show the html-formated texts or even to create a mini-browser, but the using full-featured html engine is not possible. Usually you don't need something like WebKit to show some html tooltips or html-formated text, **litehtml** is much better for these. 8 9##HTML Parser 10 11**litehtml** uses the [gumbo-parser](https://github.com/google/gumbo-parser) to parse HTML. Gumbo is an implementation of the HTML5 parsing algorithm implemented as a pure C99 library with no outside dependencies. It's designed to serve as a building block for other tools and libraries such as linters, validators, templating languages, and refactoring and analysis tools. 12 13##Compatibility 14 15**litehtml** is compatible with any platform suported C++ and STL. For Windows the MS Visual Studio 2013 is recommended. **litehtml** supports both utf-8 and unicode strings on Windows and utf-8 strings on Linux. 16 17##Support for HTML and CSS standards 18 19Unfortunately **litehtml** is not fully compatible with HTML/CSS standards. There are lots of work to do to make **litehtml** as well as modern browsers. But **litehtml** supports most HTML tags and CSS properties. You can find the list of supported CSS properties in [this table](https://docs.google.com/spreadsheet/ccc?key=0AvHXl5n24PuhdHdELUdhaUl4OGlncXhDcDJuM1JpMnc&usp=sharing). In the most cases the html/css features supported by **litehtml** are enough. Right now **litehtml** supports the pages with very complex html/css designs. As example the pages created with [bootstrap framework](http://getbootstrap.com/) are usually well formated by **litehtml**. 20 21##Testing litehtml 22 23You can [download the simple browser](http://www.litehtml.com/download.html) (**litebrowser**) to test the **litehtml** rendering engine. 24 25The litebrowser source codes are available on GitHub: 26 * [For Windows](https://github.com/tordex/litebrowser) 27 * [For Linux](https://github.com/tordex/litebrowser-linux) 28 29##License 30 31**litehtml** is distributed under [New BSD License](http://opensource.org/licenses/BSD-3-Clause). 32The **gumbo-parser** is disributed under [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) 33 34##Support litehtml project 35 36If you think litehtml is amazing please consider a small donation: 37 38[ ![PayPal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif) ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UHBQG6EAFCRBA) 39 40Bitcoin: **1CS1174GVSLbP33TBp8RFwqPS6KmQK6kLY** 41 42![BitCoin](https://www.tordex.com/assets/images/litehtml-bitcoin.png) 43