Here document: Difference between revisions

add sed
(add sed)
Line 1,994:
In order for a neat code each lines has as prefix spaces and a | symbol
which will be removed by the stripMargin function.
 
=={{header|sed}}==
<syntaxhighlight lang="sed">c\
The commands 'a', 'c', and 'i' can be followed\
by multi-line text. Each line break in the text\
is preceded by a backslash.</syntaxhighlight>
{{out}}
<pre>
$ echo | sed -f heredoc.sed
The commands 'a', 'c', and 'i' can be followed
by multi-line text. Each line break in the text
is preceded by a backslash.
</pre>
 
=={{header|SenseTalk}}==
559

edits