C_TEMPL.ZIP contains enhanced C template macros
that I made a couple of years ago.
The macros contain several enhancements compared
to the original C.VTM:
- C keyword is expanded when you press space key after typing
the keyword. No need to type any parenthesis.
- In order to avoid keywords to be expanded inside comments,
the keyword is expanded only if it is the first displayable
word on the line and if cursor is at end of line.
- The amount of indent can be set from configuration
'Config' -> 'Programming' -> 'Indent increment'
- Does not write the dots that user would have to delete.
- Some new keywords have been added, and some existing have
been improved.
The following keywords are expanded:
(Note: "..." means typically an empty indented line)
When you type: expands to:
---------------------------------------
if if () {...}
if( if ()
ife if () {...} else {...}
while while () {...}
do do {...} while ();
for for () {...}
; in for statement ; i< ; i++ (where i is the variable name you wrote)
switch switch () {case : ... default:}
case case : ... break
printf printf("")
cprintf cprintf("")
sprintf sprintf(, "", )
#de #define
#in #include <>
#inc #include ""
---------------------------------------
The macros C1.VTM, C2.VTM and C3.VTM are identical except
that they use different indenting styles. See the document
C_TEMPL.TXT included in the ZIP file.