Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gets the text inside the subfunction
#1
Hi,

I want to Gets the text inside the subfunction where the text caret is located(Red arrow in the figure), Save to the variable ct
Then replace The original text to the newly modified text
[Image: 5.png]
Can implemented simply with the scintilla Control's function?

Thanks in advance for any advice and help
david

Macro Macro4
Trigger Aq     Help - how to add the trigger to the macro
Code:
Copy      Help
;Todo1:
;Gets the text inside the subfunction where the text caret is located, Save to the variable ct

str ct
ct.findreplace("aa1" "aaaaaaaaaaaaaaaa1")

;Todo2:
;replace The original text to the new text with the variable ct

Autotext AT2
Trigger $t     Help - how to add the trigger to the macro
Code:
Copy      Help
/b/i/c/m
aa :sub.Sub1 ;;aa1
aa :sub.Sub2 ;;aa2

#sub Sub1 m
_s=
;I am aa1
paste _s

#sub Sub2 m
_s=
;I am aa2
paste _s


Messages In This Thread
Gets the text inside the subfunction - by Davider - 11-27-2022, 03:12 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)