Lazarus

Using the Lazarus IDE => General => Topic started by: JdeHaan on October 01, 2021, 03:28:19 pm

Title: context sensitive keywords
Post by: JdeHaan 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
Title: Re: context sensitive keywords
Post by: Martin_fr 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