home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
MABBREV.ZIP
/
CABBREV.DOC
< prev
next >
Wrap
Text File
|
1990-01-21
|
2KB
|
38 lines
The CABBREV extension implements templates for various C keywords in a
fashion similar to the template macros in the Brief editor. To set up, copy the
CABBREV.MXT file to the directory where your TOOLS.INI is kept, place the line
"load:$INIT:cabbrev.mxt" somewhere in your TOOLS.INI file ( I have placed it in
my "[M-.c]" section so that it is loaded only when I am working on C files.).
After re-initializing, CABBREV should be ready to use.
To use, type the first one or two letters of a keyword (or enough letters
to uniquely identify the keyword and then execute the cabbrev macro. For
example, pressing "w" and executing cabbrev will yield "while ()", pressing
"s" and executing cabbrev will yield "switch ()", pressing "#d" will yield
"#define",etc. The following is a list of keywords supported in order of
priority:
"return","break";","do","default:","else ","continue;","#if ","#define ",
"#include ","#ifdef ","#ifndef ","#endif","else if ()","if ()","while ()",
"for ()","switch ()","case :"
"ei" may also be used to expand to "else if ()" and "do" is expanded to
"do { \n\n } while()". Since the source
The cabbrev function is assigned to the "Alt+Tab" key by default. Brief
assigns theirs to the spacebar. I avoided doing the same thing since I need the
spacebar for entering Args. Of course you may use any key you choose by
reassigning the function "cabbrev" to the desired key.
CABBREV was compiled for use with M v1.02. You will have to recompile it for
M version 1.00. I hope you find CABBREV useful. I don't believe I used any
M functions that do not have a v1.00 equivalent, so it should still work.
(Upgrades are now available from Microsoft for licenced users.) If there is
enough expressed interest in having this extension for v1.00, I can compile one.
will If you have any comments, please feel free to leave me a message. Feedback
is welcome.
Joseph Van Valen
(CIS ID:) 76537,145