Here document: Difference between revisions
→{{header|langur}}
m (→{{header|Wren}}: Changed to Wren S/H) |
Langurmonkey (talk | contribs) |
||
(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
<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 =
We put our text here.
Here we are, Doc.
|