Posts: 1,058
Threads: 367
Joined: Oct 2007
I understand, and used very frequently, that mac+ opens a macro in editor. I wonder whether there exists an ancillary function that goes (displays) line "n" in this macro. I have some ideas to write it, but it is obvious anything ready - written by Gintaras - will be much more efficient and elegant.
Many thanks in advance.
Posts: 12,073
Threads: 140
Joined: Dec 2002
Macro
open macro and go to line n
str macro="ShowDialog"
int n=10 ;;1-based line index
;open macro and go to line n
mac+ macro
SendMessage GetQmCodeEditor SCI.SCI_GOTOLINE n-1 0
;display a link in QM output or other control that supports tags
str s=
F
;<><open "{macro} /L10">open ShowDialog and go to line {n}.</open> QM 2.3.2.
out s
Posts: 1,058
Threads: 367
Joined: Oct 2007
Many thanks for an excellent advice.