Note: SPF (or whateber) was so ingrained in the programmer's fingers
that someone produced a DOS based editor which behaved the same strange
way. I think there was even a Windows 3.1 version of it.
I had a quick brush with the SPF mainframe editor and I agree it was
somewhat quirky.
However, I was thinking about SEU (Source Editor Utility) which I first
got my hands on under OS/400 though I think it originated on System/38.
That was language sensitive in terms of format as Mike described. It
could also call the compiler's parser on a line by line basis to syntax-
check each line as it was entered. I used it to deal with RPG3, PL/1 and
CL - and there's almost nothing in common between these languages. Its
abilities when it came to command completion and formatting in CL were
amazing. Its UI was only 'adequate' even allowing for it being restricted
to a 24x80 green screen, but that another story.
About the same time I also used EVE on a VAX. That was about the ultimate
in customizable editors. It was supplied as a function library and a
hackable framework that, as issued, let it work as a multi-buffered
programmers editor. Thanks to this structure it was particularly easy to
modify.