How to use triple quote

Can I use the triple quote to create a string whose first character is ""

I tried the following and intelliJ complains.

var test = """"-" using 1:2"""

Also IntelliJ complains about the following one when ends in ", and IntelliJ refuses to indent properly.

   foo(s"""# "${title}"""")

Works fine here (and “IntelliJ complains” is a rather vague error report).

1 Like

It was a false alarm. And thanks for the confirmation. I think the problem was that there were also other errors in the function. After I fixed all the errors, the quadruple quote does indeed work. In the mean time IntelliJ really wanted to insert new-lines into my triple quoted string.