Recent

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

lainz

  • Hero Member
  • *****
  • Posts: 3874
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: 3874
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: 2977
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: 534
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.
Lazarus 2.0.12, 2.2.0-RC2, 2.3.0 (Git) / FPC 3.2.0, 3.2.2 / x86-win64 / Windows 8.1

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 793
  • 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 2.3.0(trunk) FPC 3.3.1(trunk) Ubuntu 21.10 64b Dark Theme
Lazarus 2.0.12(stable) FPC 3.2.2(stable) Ubuntu 21.10 64b Dark Theme
http://github.com/gcarreno

Mimmo

  • New Member
  • *
  • Posts: 11
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: 860
Re: HTML Viewer (Basic viewer needed)
« Reply #6 on: October 28, 2021, 02:02:04 pm »
THTMLFrameViewer seems good enough.

 

TinyPortal © 2005-2018