Here document: Difference between revisions
→{{header|Wren}}: Updated to v0.4.0.
MaiconSoft (talk | contribs) m (Add " {{omit from|Delphi}}" because Delphi is based in Pascal and pascal can not handle strings multilines, unless concatenate with "+" char.) |
(→{{header|Wren}}: Updated to v0.4.0.) |
||
Line 2,238:
=={{header|Wren}}==
Wren
A raw string is any text delimited by triple quotes, """, and is interpreted literally i.e. any control codes and/or interpolations are not processed as such.
If a triple quote appears on its own line then any trailing whitespace on that line is ignored.
Borrowing the Ada example (appropriately adjusted) for an illustration of
<lang ecmascript>var a =
var b = """
- an escape sequence such as a quotation mark "\\" is interpreted literally, and
"`Have fun!`"▼
- interpolation such as %(a) is also interpreted literally.
System.print(a.join("\n"))</lang>▼
"""
{{out}}
<pre>
This is a
- indention is preserved,
- an escape sequence such as a quotation mark
- interpolation such as %(b) is also interpreted literally.
`Have fun!`
</pre>
|