Recent

Author Topic: ATSynEdit: clickable links, highlight brackets  (Read 89 times)

Alextp

  • Hero Member
  • *****
  • Posts: 889
    • UVviewsoft
ATSynEdit: clickable links, highlight brackets
« on: October 05, 2019, 11:39:57 am »
Because this question is useful for many ppl, I reply here.
Quote
I would be interested in adding features:

1. Clickable links
2. HighLight brackets

Reply:
1. Handle OnClick, in the handler read Caret:=Ed.Carets[0], get S:=Ed.Strings.Lines[Caret.PosY], and calculate URL from this S (position in the S is Caret.PosX+1). Pass this URL to Lazarus API

2. Use Attribs object to add any colored attributes for brackets.
https://wiki.freepascal.org/ATSynEdit#Attribs_object
« Last Edit: October 05, 2019, 11:43:43 am by Alextp »