home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / MABBREV.ZIP / CABBREV.DOC < prev    next >
Text File  |  1990-01-21  |  2KB  |  38 lines

  1.     The CABBREV extension implements templates for various C keywords in a
  2. fashion similar to the template macros in the Brief editor. To set up, copy the
  3. CABBREV.MXT file to the directory where your TOOLS.INI is kept, place the line
  4. "load:$INIT:cabbrev.mxt" somewhere in your TOOLS.INI file ( I have placed it in
  5. my "[M-.c]" section so that it is loaded only when I am working on C files.).
  6. After re-initializing, CABBREV should be ready to use.
  7.  
  8.     To use, type the first one or two letters of a keyword (or enough letters
  9. to uniquely identify the keyword and then execute the cabbrev macro. For
  10. example, pressing "w" and executing cabbrev will yield "while ()", pressing
  11. "s" and executing cabbrev will yield "switch ()", pressing "#d" will yield
  12. "#define",etc. The following is a list of keywords supported in order of
  13. priority:
  14.  
  15. "return","break";","do","default:","else ","continue;","#if ","#define ",
  16. "#include ","#ifdef ","#ifndef ","#endif","else if ()","if ()","while ()",
  17. "for ()","switch ()","case :"
  18.  
  19.     "ei" may also be used to expand to "else if ()" and "do" is expanded to
  20. "do { \n\n } while()". Since the source
  21.  
  22.  
  23.     The cabbrev function is assigned to the "Alt+Tab" key by default. Brief
  24. assigns theirs to the spacebar. I avoided doing the same thing since I need the
  25. spacebar for entering Args. Of course you may use any key you choose by
  26. reassigning the function "cabbrev" to the desired key.
  27.  
  28.     CABBREV was compiled for use with M v1.02. You will have to recompile it for
  29. M version 1.00. I hope you find CABBREV useful. I don't believe I used any
  30. M functions that do not have a v1.00 equivalent, so it should still work.
  31. (Upgrades are now available from Microsoft for licenced users.) If there is
  32. enough expressed interest in having this extension for v1.00, I can compile one.
  33. will If you have any comments, please feel free to leave me a message. Feedback
  34. is welcome.
  35.  
  36.     Joseph Van Valen
  37.     (CIS ID:) 76537,145
  38.