[REBOL] Re: adding line hints when building blocks - P.S.:
From: ingo::2b1::de at: 25-May-2002 14:33
Hi Gregg,
seems I have to add a little background info on my last post, at least
_I_ would have had trouble to understand what I meant, hadn't it been
written by me ...
> Gregg Irwin wrote:
> Suppose I want to build a block in code, which will be written to a
> file, and I want it to be formatted nicely in the file (i.e. with
> newlines and indentation). Is there any way to include formatting
> hints when building a block, or do you have to build a string and
> blockify it?
Well, that what I would do:
create a block, however it looks, and stringify it on save (use a pretty
printer, e.g. the one in my previous post) to create a pretty printed
output.
Kind regards,
Ingo