Here document: Difference between revisions

no edit summary
(→‎{{header|Factor}}: add more multiline examples)
No edit summary
Line 205:
A backslash: \
</pre>
 
=={{header|BaCon}}==
<lang freebasic>
'--- we dont have a here doc built-in comand in BaCon
'--- so I made a PRINTLINE macro that simulates the idea
DEF FN PRINTLINE(...) = fprintf(stdout, "%s\n", #__VA_ARGS__)
 
 
PRINTLINE(To use Bacon your system must have either Korn Shell, or ZShell, or Bourne Again Shell (BASH) available. \n If none of these shells are available on your platform, download and install the free Public Domain Korn Shell which can \n execute BaCon also. Furthermore BaCon also works with a newer Kornshell implementation like the MirBSD Korn Shell.\n \n BaCon intends to be a programming aid in creating tools which can be compiled on different platforms \n (including 64bit environments). It tries to revive the days of the good old BASIC. )
</lang>
 
 
Output:
<pre>To use Bacon your system must have either Korn Shell, or ZShell, or Bourne Again Shell (BASH) available.
If none of these shells are available on your platform, download and install the free Public Domain Korn Shell which can
execute BaCon also. Furthermore BaCon also works with a newer Kornshell implementation like the MirBSD Korn Shell.
 
BaCon intends to be a programming aid in creating tools which can be compiled on different platforms
(including 64bit environments). It tries to revive the days of the good old BASIC.</pre>
 
=={{header|C}}==
69

edits