python, does something similar.. they have a """ which allows pre-formated text.
so you can do (psuedo-code)...
string license = """
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
. . .
""";
I just thought id mention it.. it is quite a handy feature... the interpreter
also has a help routine which will pull a certain string out of any loaded
modules as its documentation string. sort of like a basic 'man' funcionality in
the interpreter... a rather neat idea, unlike comment documentation systems,
the strings can be extracted from a compiled module at run time.... in any case
the pre-formated strings are useful and i prefer that syntax to the
here-document syntax... although quoting rules still need to be worked out...
John
On Tue, Jun 08, 1999 at 06:17:41PM +0200, Magnus Carlsson wrote:
> sqlstring = �insert into mytable values
> (NULL,'{show(var1)}','{show(var2)}','{var3}');�
>
> Text is enclosed within �these characters� (which are hard to find on
> my keyboard, so I let Emacs insert them when I press '"'). To support
> markup, stuff that follows a space inside an escape is treated as
> text:
--
--------------------------------------------------
John Meacham http://synergy.foo.net/~john/
[EMAIL PROTECTED]
--------------------------------------------------