I'm using TAdvMemo in my project. For a special feature I need to check if the caret (CurX, CurY) is currently located inside a (multi-line) comment or a quoted text. Is this possible?
Unfortunately there is no such function available at this time.
The only function we could easily expose is to get the style of a line, i.e. retrieve whether a line is a comment line. We can add a function like:
if AdvMemo.GetLineStyle(ALine).isComment then...
That is something we could add for the next update of TAdvMemo.
To get the same per token, i.e. at X,Y position will be a lot more work to integrate.
Thank you for the answer, it would be nice if you can implement this feature in to the next update.