Recent

Author Topic: HTML Viewer (Basic viewer needed)  (Read 3587 times)

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
HTML Viewer (Basic viewer needed)
« on: October 27, 2021, 04:27:35 pm »
Hi, I need a cross platform, windows, linux, macos, html viewer than can display:

A title like h1..h3, a paragraph, and bullets like an unordered list. Optionally images.

Nothing more than that. What component do you recommend?

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: HTML Viewer (Basic viewer needed)
« Reply #1 on: October 27, 2021, 05:17:10 pm »
Seems that there's only one in the OPM but the github project doesn't say nothing about macos.

engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: HTML Viewer (Basic viewer needed)
« Reply #2 on: October 28, 2021, 04:08:30 am »
If you don't mind text limited to ASCII, test this one. Not sure what happened with the author and his website, probably you can get a copy from web archive.

dsiders

  • Hero Member
  • *****
  • Posts: 1052
Re: HTML Viewer (Basic viewer needed)
« Reply #3 on: October 28, 2021, 04:32:25 am »
Hi, I need a cross platform, windows, linux, macos, html viewer than can display:

A title like h1..h3, a paragraph, and bullets like an unordered list. Optionally images.

Nothing more than that. What component do you recommend?

If you're not expecting full CSS3 compliance, the TIPHtml component in the TurboPower IPro package will probably do the job.
Preview Lazarus 3.99 documentation at: https://dsiders.gitlab.io/lazdocsnext

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1111
  • Professional amateur ;-P
Re: HTML Viewer (Basic viewer needed)
« Reply #4 on: October 28, 2021, 05:13:29 am »
Hey lainz,

Please ignore all the Markdown stuff and the fact that this post could be construed as a plug to my thing, which is not my intention at all.

I've been using the THTMLFrameViewer on this test of many Markdown libs for quite a while and it's not that bad: https://github.com/gcarreno/TestMarkdown

Cannot guarantee/talk about any results under Mac. I don't own one and I'm not using the GitHub actions to test the code under a macos-latest machine, so you'll have to test it on your own.

Again, in my code you have a very simple example on how to use the HTML Viewer, disregard the rest of the noise please.

Cheers,
Gus
Lazarus 3.99(main) FPC 3.3.1(main) Ubuntu 23.10 64b Dark Theme
Lazarus 3.0.0(stable) FPC 3.2.2(stable) Ubuntu 23.10 64b Dark Theme
http://github.com/gcarreno

Mimmo

  • New Member
  • *
  • Posts: 21
Re: HTML Viewer (Basic viewer needed)
« Reply #5 on: October 28, 2021, 08:26:34 am »
I can recommend this:
https://github.com/BerndGabriel/HtmlViewer
Development is still active and I've no issue with it even if my usage is basic, just showing mail bodies on win and linux machines.

egsuh

  • Hero Member
  • *****
  • Posts: 1273
Re: HTML Viewer (Basic viewer needed)
« Reply #6 on: October 28, 2021, 02:02:04 pm »
THTMLFrameViewer seems good enough.

 

TinyPortal © 2005-2018