![Image](https://i.imgur.com/eptP3nY.png)
IDK how to get rid of the `. I get a bunch of errors any other way that I try and make the pasta variable
![Image](https://i.imgur.com/vIZ4q28.png)
My crude workaround ^ (not good lol)
Code: Select all
pasta := "[found]"
str := format("
(
{}
a string
" pasta "
' pasta '
)",pasta)
msgbox str
If you really want to end quotes inside a continuation section, start them only inside the continuation section (and then you must escape any literal quotes, consistently).Quote marks are automatically escaped (i.e. they are interpreted as literal characters) if the continuation section starts inside a quoted string
Source: Scripts - Definition & Usage | AutoHotkey v2
Code: Select all
pasta := "[found]"
str :=
(
pasta "
a string
`" pasta `"
' pasta '
)"
msgbox str