Recent

Author Topic: context sensitive keywords  (Read 1802 times)

JdeHaan

  • Full Member
  • ***
  • Posts: 115
context sensitive keywords
« on: October 01, 2021, 03:28:19 pm »
Hi,

I'm using SynEdit with TSynAnySyn and some keywords defined in the strings list.
I want to add a couple of keywords that should only be highlighted in a certain context, much like Lazarus does when highlighting read/write within the declaration of properties, but otherwise read and write are not highlighted.
I tried searching but cannot find it. Anyone has a suggestion?

Thanks,
J


Lazarus 2.3.0 rmain-0-g19b127a2b1 FPC 3.3.1 x86_64-darwin-cocoa

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9792
  • Debugger - SynEdit - and more
    • wiki
Re: context sensitive keywords
« Reply #1 on: October 01, 2021, 06:39:08 pm »
TSynAnySyn does not have that...

You can write your own HL: https://wiki.lazarus.freepascal.org/SynEdit_Highlighter

 

TinyPortal © 2005-2018