@Kevin
Thanks for your help, I have a mistake in my expression above,
I actually want to get all the text in the subfunction where the text caret is, everything in the pink box
Is this possible?
I often have to select these texts and copy them somewhere else, but sometimes the texts are too long
Or replace some text and paste it back
Thanks for your help, I have a mistake in my expression above,
I actually want to get all the text in the subfunction where the text caret is, everything in the pink box
Is this possible?
I often have to select these texts and copy them somewhere else, but sometimes the texts are too long

Or replace some text and paste it back

Gets the text inside the subfunction