Suggestion for correcting the IDE's script editor

Jon jbondy at sover.net
Tue Jun 28 18:24:31 EDT 2005


SimPLsol at aol.com wrote:

> We could argue all month about style but, for the benefit of anyone
> interested, here's how I do it:


OK, so, here is how I would like code to be formatted (not that I expect 
it to change, just FYI).

if [short statement] then [short statement]

if [long statement] then
   [long statement]
  
if [statement] then
   [statements]
   end if  -- note I always line my ENDs up with the internal statements

There is a reason for this: if I want to clip the final line out, I can 
just do a <shift><down arrow> and not have to back up to get rid of the 
"EN" that was accidentally included.  This is one of the annoyances with 
the current script editor, something that does not happen with the 
Delphi editor.

if [statement] then
   [statements]
else
   [statements]
   end if

Like it or not, it is consistent and it is easy to read.

:)

Jon




More information about the use-livecode mailing list