Home » Community » Coffee corner » HTML viewer
Re: HTML viewer [message #60031 is a reply to message #60029] |
Tue, 11 July 2023 13:38   |
 |
mirek
Messages: 14267 Registered: November 2005
|
Ultimate Member |
|
|
forlano wrote on Tue, 11 July 2023 13:21mirek wrote on Tue, 11 July 2023 11:57
Accidentally, I was forced to implement limited support for RichEdit accepting HTML clipboard format.
While definitely not the same thing as HTML viewer, it now understand most of style formatting that is applicable to RichText. I plan to enrich it a bit more (to actually understand CSS, add support for tables and maybe some sort of support for importing images).
https://github.com/ultimatepp/ultimatepp/blob/master/uppsrc/ RichText/ParseHTML.cpp
(That is not meant to distract us from CEF, ParseHTML is not even meant to be complete HTML viewer, just a bridge that allows some HTML->RichText/QTF conversion)
Mirek
Hi Mirek,
even this may help a lot.
Is there an example package that shows how to use it or it should work as paste operation from clipboard?
Thanks,
Luigi
Right now it works as paste. But you can use it in the code as well, look for TrivialHtmlParse (really simple, String and base font on input, RichText as return value...)
|
|
|
Goto Forum:
Current Time: Sat Aug 23 22:41:54 CEST 2025
Total time taken to generate the page: 0.03894 seconds
|