Recent

Author Topic: Special highlighter in TATSynEdit  (Read 1004 times)

SaraT

  • Full Member
  • ***
  • Posts: 139
  • A little student
Special highlighter in TATSynEdit
« on: June 16, 2025, 09:14:48 pm »
Hi, this is my first time using highlights in TATSynEdit.

Please, take a look at the attached png image and tell me
how to highlight the syntax. I don't have any idea hot to get it work :/

I would be so thankful if anybody provide a working code.

Thanks a lot!

AlexTP

  • Hero Member
  • *****
  • Posts: 2615
    • UVviewsoft
Re: Special highlighter in TATSynEdit
« Reply #1 on: September 15, 2025, 04:04:58 pm »
I overlooked this post.

To highlight text, create the class inherited from TATAdapterHilite (unit atsynedit_adapters). Then assign instance of this class to TATSynEdit property AdapterForHilite.

Alternative is possible: handle event OnCalcHilite.
Both ways are similar.

 

TinyPortal © 2005-2018