[futurebasic] Re: [FB] FB^3 Code Format Tip

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 2000 : Group Archive : Group : All Groups

From: Robin <robinc@...>
Date: Mon, 10 Apr 2000 09:01:31 +1000
> Through a whole bunch of trial and error I finally discovered a method
> by which I can copy source code from the FB^3 Editor to Paste it into a
> ResEdit TEXT resource, maintaining the indenting. I tried pasting it into
> a wide variety of different programs first, but it always lost all of the
> indenting when I did this - until I pasted the code into an FBII file, then
> copied that. I could then paste this into just about any other app I tried -
> with the indentation IN PLACE - ALIVE AND LIVING!
> 
> I don't know what was done differently in FB^3 (vs FBII), but - at least -
> NOW I don't have to worry about "diddling" with the code I need to paste
> into TEXT Resources for all of the Demos that will be used in the FB Book.

If only you'd asked I could have told you that, as that's how I paste in
examples these days ;-)

The difference is that FBII actually addes spaces to do its formatting,
whereas FB^3 seems to work it out on the fly and place the text directly
without merely putting spaces in front (hence all the indentation disappears
if you block-rem it out).
-- 
Robin
====================================================
Genesearch Pty Ltd
E-mail: robinc@...
WWW:    http://www.genesearch.com.au
====================================================