Forum > SynEdit

TSynEdit - horizontal line

(1/1)

Dibo:
Hi,

Lazarus source editor using TSynEdit. I am using this component in my project. How Lazarus draw horizontal line (e.g. before section "var" and "implementation")? I can't find source editor unit in lazarus source.

Regards.

Martin_fr:
The information is returned from the highlighter.
See TSynCustomHighlighter.DrawDivider[Line].

See only highlighter that implements it is the Pascal Highlighter.

You can implement your own highlighter, or subclass any existing, and override the function that returns the info.

Information about highlighters (but not DrawDivider):
http://wiki.lazarus.freepascal.org/SynEdit_Highlighter

For DrawDivider you have to consult the Source itself, just use "Search in files"

Dibo:
Thanks Martinfr

Navigation

[0] Message Index

Go to full version