[lazarus] Font Problems
Sebastian Guenther
sguenther at gmx.de
Sat Feb 19 05:43:01 EST 2000
"Alexander Mehlhorn (AHM)" wrote:
> Does the SHEdit implement parsing of source that is non-pascal/delphi ?
You can add highlighters for whatever you want. At the moment, there are
two highlighters: One for Pascal/Delphi/FPC, and one for XML and HTML
sources.
A highlighter consists of two parts: You have to write the highlighting
algorithm itself (a function which gets a pointer to the input line; the
output is a 'tagged' string where a special character is used to switch
the font styles and colors. Additionally you have a few status bits per
line which you can use, e.g. for marking a line as being part of a
multi-line comment). The other part is to define all the styles (font +
color), but this is dependent of the SHEdit renderer implementation.
- Sebastian
More information about the Lazarus
mailing list