Many years ago I worked with a modifiable IDE (I think for Quicksilver) and set it up so when you typed in an "If" the corresponding "End If" was automatically inserted a few lines lower. Ditto for all types of loops. Was a pleasure to work with - and I've never seen it done anywhere else