On 2/11/00 9:34:19 AM, Ted Green wrote:
> With the smart-indent I have in mind,
> the entire program could be entered
> without having to manually indent the code
> or press any function keys.
I guess you mean a smart indent similar to that on Visual C++. I have never found any need for that. The template editing does it better.
The only additional thing needed is the keyboard macro I have defined for key Alt-{.
It inserts {} pair with an empty indented line in between, and moves cursor to that line. The auto indent mode handles rest.
Thus, your example program can be entered without having to manually indent the code or press any function keys.
On my keyboard, entering alt-{ is actually easier than entering a single '{' which requires pressing Alt-Gr key.
Of course, I am using my enhanced template macro that I made a couple of years ago.
I will upload it here as soon as I have written some documentation.
Meanwhile, here is the keyboard macro:
[RETURN]}[LINE BEGIN][CURSOR LEFT]{[RETURN][INDENT]
- Pauli
|
|