If a code editor auto-indents code and you want to avoid it, use paste, not key.
Function PasteAutoInputDialog
Other option - before key insert opt keychar 1. Then some code editors, including QM, will not auto-indent when previous line is tab-indented. But still will auto-indent after lines such as 'if', 'sel', 'rep'. Better paste.
Function PasteAutoInputDialog
;/
function $template
;Calls <help>AutoInputDialog</help> and pastes the text. Also sets caret if need.
;EXAMPLE
;_s=
;F
;;Dear Mr. $inp_Customer$,
;;
;;thank you for contacting us. The price is $$inp_Price$. Let's meet next $inp_Day$.
;;
;;Thanks and best regards,
;;$set_CaretHere$
;;
;;$var_ShortDate$
;;
;PasteAutoInputDialog(_s)
int nLeft
str s=AutoInputDialog(template nLeft)
spe 10
paste s
if(nLeft) key L(#nLeft)
Other option - before key insert opt keychar 1. Then some code editors, including QM, will not auto-indent when previous line is tab-indented. But still will auto-indent after lines such as 'if', 'sel', 'rep'. Better paste.