Line wrapping

stephen barncard stephenREVOLUTION2 at barncard.com
Mon Aug 17 23:15:58 EDT 2009


Somehow the mailer put spaces between each line of code. Obviously that
won't compile but it does look right in the editors.

-------------------------
Stephen Barncard
San Francisco
http://barncard.com


2009/8/17 Richard Gaskin <ambassador at fourthworld.com>

> stephen barncard wrote:
>
>  It's better for one to do one's own wrapping.
>> for instance
>>
>> put field "myField" of cd "myCard" of stack "myStack" into field
>> "myField2"
>> of cd "nextCard" of stack "otherStack"
>>
>> is a horrible jumble of garbage to the eyes, but
>>
>>  put\
>>
>>                  field "myField" \
>>
>>                  of cd "myCard" \
>>
>>                  of stack "myStack" \
>>
>>                  into field "myField2" \
>>
>>                  of cd "nextCard" \
>>
>>                  of stack "otherStack"
>>
>>
>> makes a lot of sense. Automatic wrapping can't do that. And it's easier to
>> edit the references. And the compiler and indenter both are happy with it.
>> And one can make the edit window narrower.
>>
>
> A good point, well illustrated.
>
> Another benefit of adding line wraps manually is that it requires you to
> read the code at least well enough to find usful line breaks, sometimes a
> useful task when inheriting a code base.
>
> --
>  Richard Gaskin
>  Fourth World
>  Revolution training and consulting: http://www.fourthworld.com
>  Webzine for Rev developers: http://www.revjournal.com
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list