Recent

Author Topic: Tsynanysyn  (Read 643 times)

mtanner

  • Full Member
  • ***
  • Posts: 226
Tsynanysyn
« on: February 19, 2019, 01:03:52 pm »
Just started using tsynedit and tsynanysyn. What I want to do is highlight a complete line if it contains a keyword. Alternatively can I specify a keyword that contains blanks.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 5450
    • wiki
Re: Tsynanysyn
« Reply #1 on: February 19, 2019, 01:42:37 pm »
That wont work.

Look at the SynEdit properties:
    property OnSpecialLineColors: TSpecialLineColorsEvent
    property OnSpecialLineMarkup: TSpecialLineMarkupEvent

Alextp

  • Hero Member
  • *****
  • Posts: 848
    • UVviewsoft
Re: Tsynanysyn
« Reply #2 on: February 19, 2019, 06:00:04 pm »
Consider to use ATSynEdit (link in signature).
Package ATSynEdit_Ex has atsynedit_adapter_simple.pas which hilites any line by keyword.

Edson

  • Hero Member
  • *****
  • Posts: 1021
Re: Tsynanysyn
« Reply #3 on: February 20, 2019, 05:09:13 am »
You can write a simple Synedit highlighter to do that.

You can use the code indicated in http://blog.pucp.edu.pe/blog/tito/wp-content/uploads/sites/610/2013/10/la_biblia_del_synedit_-_rev6.pdf section 2.3.3.
Lazarus 1.6 - FPC 3.0.0 - x86_64-win64 on  Windows 7