U++ framework
Do not panic. Ask here before giving up.

Today's Messages (on)  | Unanswered Messages (off)

Forum: U++ Developers corner
 Topic: HTML viewer
HTML viewer [message #61989] Tue, 12 May 2026 15:53
forlano is currently offline  forlano
Messages: 1224
Registered: March 2006
Location: Italy
Senior Contributor
Hello,

I played with ClaudeAI and asked him to make a HtmlViewer for U++ using litehtml
https://github.com/litehtml

Here is what I got

/forums/index.php?t=getfile&id=7152&private=0

In the url bar you can set the pat of a local file and it is nicely rendered.
The problem is that it works only in debug mode. If I switch to release mode some bad thing happens and the program cannot retrieve properly the font size. Why this happen is beyond my capability and even beyond ClaudeAI knowledge. We did some LOG to analyze the output and he concluded that in release mode the font dimension are not returned properly. It tried many fix but no results.

This experiment is very promising. If fixed I (ClaudeAI) can add a HTTP support to retrieve page online. But even so as simpler HTML viewer would be very useful... at leat for me to visualize a better report with HTML table.
In the next post I am going to attach the package I used with few instructions.

Thanks,
Luigi

  • Attachment: htmlupp.png
    (Size: 23.17KB, Downloaded 47 times)
Re: HTML viewer [message #61990 is a reply to message #61989] Tue, 12 May 2026 15:59
forlano is currently offline  forlano
Messages: 1224
Registered: March 2006
Location: Italy
Senior Contributor
Attached the package that contains the folder lithehtml.

In the include directory add these paths:

C:\Users\forla\Documents\MyAppsExp\LHUpp\litehtml\src\gumbo\ include
C:\Users\forla\Documents\MyAppsExp\LHUpp\litehtml\src\gumbo\ include\gumbo
C:\Users\forla\Documents\MyAppsExp\LHUpp\litehtml\include
C:\Users\forla\Documents\MyAppsExp\LHUpp\litehtml\include\li tehtml

I used the U++ 18518

Thanks,
Luigi
  • Attachment: LHUpp.zip
    (Size: 914.50KB, Downloaded 7 times)



Current Time: Wed May 13 23:06:18 GMT+2 2026

Total time taken to generate the page: 0.00662 seconds