Suggestion for correcting the IDE's script editor

Jon jbondy at sover.net
Tue Jun 28 20:00:04 EDT 2005



Alex Tweedly wrote:

> Jon wrote:
>
>> OK, so, here is how I would like code to be formatted (not that I 
>> expect it to change, just FYI).
>>   <snip>
>> 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.
>>
> But you still have that problem with the statement before the "else" 
> (and before the end of repeat, switch, case, end of handler, ...); 
> Operating on the whole current line, is common, so I'd like a command 
> to either select whole current line, or to select from <current pos> 
> to the end of the whitespace on the next line.


You are quite right about the problem with ELSE (I'm used to Pascal 
where multiple line statements are bracketed by BEGIN/END, and since I 
indent the END, that "takes care of" that "problem").

I also indent the end of REPEATs, SWITCHES, CASES, etc, so that is not a 
problem for me (unless I use the auto-format in Rev).

One can select the whole current line via <home><shift><end><unShift>, 
but then you have to make room for the text.

I've begun to realize that the ease with which I use Delphi is due 
significantly to issues other than the editor (my bizarre indentation 
style, the BEGIN/END syntax, etc).  That said, I agree with an earlier 
statement by someone else that the editor's auto-indent behavior can be 
improved without making problems for long-time (not to say "older" ) 
users of the editor.

:)

Jon



More information about the use-livecode mailing list