Recent

Author Topic: TSynEdit - horizontal line  (Read 4841 times)

Dibo

  • Hero Member
  • *****
  • Posts: 1048
TSynEdit - horizontal line
« on: March 26, 2011, 02:13:45 pm »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 6299
    • wiki
Re: TSynEdit - horizontal line
« Reply #1 on: March 26, 2011, 09:09:30 pm »
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

  • Hero Member
  • *****
  • Posts: 1048
Re: TSynEdit - horizontal line
« Reply #2 on: March 26, 2011, 10:11:36 pm »
Thanks Martinfr

 

TinyPortal © 2005-2018