AdvMemo AdvIniMemoStyler

Is it a way to select a keyword list depending of the section name ?



if the section is [Section1] then keyword list will contain the Ready keyword but not if the section is [Section2].

Or is it possible to know in which section the cursor is located ?

Thanks for your help

TAdvMemo has no built-in function to return the section name. You'd have to scan the text in the memo at application level and then according to the section found, adapt the TAdvINIMemoStyler keyword list.

Thank you