Recent

Author Topic: How to display HTML5 and CSS3 content in Lazarus?  (Read 9483 times)

Jvan

  • Full Member
  • ***
  • Posts: 181
How to display HTML5 and CSS3 content in Lazarus?
« on: June 16, 2021, 09:18:03 pm »
And can TMemoRich be used to create HTML5 and CSS3 content? I would like to save it in a memo field in my database.
« Last Edit: June 16, 2021, 09:25:19 pm by Jvan »

Edson

  • Hero Member
  • *****
  • Posts: 1296
Re: How to display HTML5 and CSS3 content in Lazarus?
« Reply #1 on: June 17, 2021, 08:05:57 pm »
Do you refer to edit text in HTML5 and CSS3 format or view a HTML page from HTML5 and CSS3?

To edit HTML5 or CSS3 or any syntax, the best is using Synedit (like Lazarus do) or ATSynedit.
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Leledumbo

  • Hero Member
  • *****
  • Posts: 8744
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: How to display HTML5 and CSS3 content in Lazarus?
« Reply #2 on: June 17, 2021, 09:11:53 pm »
If what you mean is saving formatted TRichMemo concent as HTML5 and CSS3 AFAIK no, TRichMemo uses the so called Rich Text Format, which is a distinct format from HTML5 and CSS3. In theory of course a formatter for HTML5 and CSS3 can be made based on the same internal tree or whatever data structure that TRichMemo uses.

Jvan

  • Full Member
  • ***
  • Posts: 181
Re: How to display HTML5 and CSS3 content in Lazarus?
« Reply #3 on: June 18, 2021, 01:15:41 am »
A WYSIWYG HTML Editor is what I'm looking for.

Soner

  • Sr. Member
  • ****
  • Posts: 305
Re: How to display HTML5 and CSS3 content in Lazarus?
« Reply #4 on: June 18, 2021, 08:43:58 am »
Use Chromium-Browser from CEF4Delphi and set the web page in edit modus or load ckeditor or similar in a frame.

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1228
Re: How to display HTML5 and CSS3 content in Lazarus?
« Reply #5 on: June 18, 2021, 09:30:21 am »
hello,
on which operating system do you want to run your project ?
Friendly, J.P
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

egsuh

  • Hero Member
  • *****
  • Posts: 1266
Re: How to display HTML5 and CSS3 content in Lazarus?
« Reply #6 on: June 18, 2021, 11:51:56 am »
Quote
A WYSIWYG HTML Editor is what I'm looking for.

You should use MS-Word etc. for that purpose. HTML editor shows all the html tags as are.


salvadordf

  • New Member
  • *
  • Posts: 47
    • BriskBard
Re: How to display HTML5 and CSS3 content in Lazarus?
« Reply #8 on: November 01, 2021, 03:42:47 pm »
There's a Lazarus demo called "EditorBrowser" in CEF4Delphi that shows how to edit a web page in a CEF browser.
Maintainer of the CEF4Delphi, WebView4Delphi, WebUI4Delphi and WebUI4CSharp projects

 

TinyPortal © 2005-2018