Recent

Author Topic: Tsynanysyn  (Read 1811 times)

mtanner

  • Sr. Member
  • ****
  • Posts: 287
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: 9864
  • Debugger - SynEdit - and more
    • 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: 2401
    • 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: 1302
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 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

 

TinyPortal © 2005-2018