HTML Editing Component
lazarus / 5-Lazarus Extra Components
----------------------------------------------------------------------
Possum · 2009-04-29 11:43
Hi
I have used Delphi4 to write an application that makes help files and
websites.
Example
http://udopage.com/webdevelopers/udopage_43.php
The component my app mostly relies on is ProfDHTMLEdit which allows me
to edit HTML
Is there any likelihood of Lazarus getting a HTML editing component?
How would I go about writing such a component?
Thank you
----------------------------------------------------------------------
Ñuño_Martínez · 2009-04-29 12:30
Did you test the SynEdit components? They're included in Lazarus (may
be you must activate but they're in the packages) and included an XML,
HTML and CSS editors. May be you can (re)use them.
[edit] Wait, you are talking about to create HTML documents, aren't
you? If so there are a DOM XML class somewhere for FPC. May be you
find this document interesting.
----------------------------------------------------------------------
Possum · 2009-04-29 14:36
QuoteDid you test the SynEdit components
Sorry I totally missed them..
Can I use these to open and save HTML. ?
Will they show graphic..?
If they can I will port my app over to Lazurus..
----------------------------------------------------------------------
Bart · 2009-04-29 22:03
Aha,
You are not only interested in editing the html (you could do so in a
simple TMemo, but a TSynMemo gives you html syntax highlighting
capabilities), but you also want a html-rendering engine.
I'm afraid there is no such component for Lazarus out there ATM.
As an alternative, you could " preview" the html file in the OS
default browser to see how it would look, before compiling it to chm.
Vincent has been working html-help in freepascal, see: http://lazarus-
dev.blogspot.com/2008/11/compressed-html-help-chm-in-freepascal.html
You might want to look into his work?
Bart
----------------------------------------------------------------------
Possum · 2009-04-30 01:51
I think it's time for me to write a HTML editing Component. lol
OK..
I think its really time for me to learn Lazarus, Then how to write a
component
Here is my Lazarus Component writing Page
http://udopage.com/lazarus/udopage_5.php
Should be fun though..
----------------------------------------------------------------------
felipemdc · 2009-05-08 23:21
Check this page to get started about creating custom controls:
http://wiki.lazarus.freepascal.org/Developing_with_Graphics#Create_a_c
ustom_control_which_draws_itself
----------------------------------------------------------------------
Possum · 2009-05-09 15:51
QuoteCheck this page to get started about creating custom controls:
http://wiki.lazarus.freepascal.org/Developing_with_Graphics#Create_a_c
ustom_control_which_draws_itself
Thank you.. That's a good place to start.
----------------------------------------------------------------------
wes12 · 2009-06-09 13:06
A free viewer is already available for Delphi, and works well :
http://pbear.com/htmlviewers.html. Perhaps it could be ported to
Lazarus?
----------------------------------------------------------------------
Phil · 2009-06-10 05:25
I've ported but not fully debugged the "Pbear" HTML viewers:
http://web.fastermac.net/~MacPgmr/Lazarus/thtmlport_20090518.zip
Please feel free to work on this port.
Thanks.
-Phil