SynEdit

From Lazarus wiki
Revision as of 01:36, 14 January 2007 by Mattias2 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

SynEdit is a package containing a source editor component named TSynEdit, several syntax highlighters and other components used for surce editing. It is based on SynEdit 1.3, and was adapted and extended quite a lot. For example UTF-8 support and code folding were added.

SynEdit in the IDE

The SynEdit in lazarus is a built-in package, because the IDE uses it itself. That's why there is no .lpk file. The components can be found on the component palette on the 'SynEdit' page.

Examples

An example can be found at lazarus/examples/synedit1.lpi.


Further development, discussions

  • RTL (right-to-left): started by Mazen
  • automatic monospace font selection: At the moment SynEdit starts with a font 'courier'. But it would be better, if SynEdit would start with a monospace font (meaning: every character has the same width). At the moment the LCL TFont does not provide such a property. At the moment the user has to choose the right font.
  • automatic UTF-8 font selection: Same as above monospace, but also with an UTF-8 font, so that for example umlaute are shown correctly. At the moment the user has to choose the right font.
  • Dead keys. Some keyboards like french supports typing two or more keys to create one special character (like accented characters).