You might want to look at Lua. One feature it has is that you can specify literal strings several ways.
1)
"this is a\ntwo line 'string' with double quotes"
2)
'this is a\ntwo line "string" with single quotes'
3)
[[this is a
three line string, but the normal escapes sequences aren't interpreted
what you see is literally what you get]]
That last form can actually be embedded, because the actual delimiter is "[" "="* "[" and "]" "="* "]", where the number of equal signs are equal (if that makes sense). Perhaps an example of the code fragment in section 4 will be helpful:
print [=[print [[print "Hello, world"]]]=]
(The print() function in Lua automatically adds the newline).
Just a thought.