[Lazarus] Wiki-like editor component [synedit ?]

Martin Friebe lazarus at mfriebe.de
Thu Jun 18 17:00:13 CEST 2009


Marc Santhoff wrote:
> Can somebody comment on the fitness of synedit components for this task,
> please?
>   
See comments below
> I'd like to use a component from the LCL to make an editor widget behave
> similar to a wiki, the goal is to
>
> - have only some very basic formattings like bold headlines for guiding
> the readers eye better
>   
You can write your own highlighter (and/or markup modules), to do this.

However there are limitations, which will be hard to work round:
- supports only one font, at one size,
- will display all chars in a monospaced grid, (no proportional 
display); however you can allocate multiply grid-cells for a single char 
if needed

If you want do deal with "<b>"bold text</b>, then you need to write code 
that stops the tags from being displayed. It is not yet foreseen, but it 
can actually be done.
SynEdit accesses the text through a system of "Views" (like expanding 
tabs). you can add in your own module, and filter certain text out.
> - use links with vivible formatting (all links are blue/underlined, the
> fire an event when clicked)
>   
That is there already, see IDE ctrl-mouse links

> - show some pictures with the text (best would be inlined)
>   
Nothing there yet, not even basics.

There may be a chance to do emoticons or icons, that have the same 
height as the font.  (because the the line height is kept). But you have 
to write the extra code from scratch.


Best Regards
Martin






More information about the Lazarus mailing list