Here document: Difference between revisions

m (→‎{{header|Wren}}: Changed to Wren S/H)
 
(2 intermediate revisions by 2 users not shown)
Line 513:
"string"
sample</pre>
 
=={{header|EasyLang}}==
<syntaxhighlight>
# The here-document is not here, but at the end of the program
repeat
s$ = input
until error = 1
print s$
.
input_data
This is a 'raw' string with the following properties:
- indention is preserved,
- an escape sequence such as a quotation mark "\\" is interpreted literally, and
- interpolation such as %(a) is also interpreted literally.
- """ is also interpreted literally.
 
`Have fun!`
</syntaxhighlight>
{{out}}
<pre>
This is a 'raw' string with the following properties:
- indention is preserved,
- an escape sequence such as a quotation mark "\\" is interpreted literally, and
- interpolation such as %(a) is also interpreted literally.
- """ is also interpreted literally.
 
`Have fun!`
</pre>
 
=={{header|EchoLisp}}==
Line 1,189 ⟶ 1,217:
 
=={{header|langur}}==
Use a block modifier on a string literal using the qqs or QQS form to generate a blockquote. The block modifier must be the last modifier.
{{works with|langur|0.6}}
 
<syntaxhighlight lang="langur">val .s = qs:block END
We put our text here.
Here we are, Doc.
END</syntaxhighlight>
 
Use the lead modifier to strip leading white space on each line.
Use a block modifier on a string literal using the q or Q form to generate a blockquote. The block modifier must be the last modifier.
 
<syntaxhighlight lang="langur">val .s = qqs:lead:block END
We put our text here.
Here we are, Doc.
885

edits