We don't currently. but I've come to enjoy them in some recent bash scripting in which I needed to mix in some Expect. I like the idea of having that in LC, so I submitted a request for it:
http://quality.livecode.com/show_bug.cgi?id=17471
Currently, for in-line strings we have only concatenation, e.g.:
Code: Select all
put "World" into tStr
put quote&"Hello "& tStr&"!""e into fld 1
Useful, but not nearly as elegant as arbitrary in-line blocks.
When I need more text than I care to write concatenation expressions for, I tend to store those in custom properties or in files on disk. Custom props are usually more convenient; I have only one project where external editing of such templates made using files a good fit.
Not quite as nice as heredoc, but hopefully custom properties will at least get you moving forward for now, and with any luck we may see a heredoc-like structure in LC not too far down the road.
Tip: see the merge function in the Dictionary. It makes working with text templates a snap, allowing you to drop in placeholders for variable and function names for quick automated replacement.