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

  1.     The PASABBREV extension implements templates for various pascal keywords in a
  2. fashion similar to the template macros in the Brief editor. To set up, copy the
  3. PASABBRV.MXT file to the directory where your TOOLS.INI is kept, place the line
  4. "load:$INIT:pasabbrv.mxt" somewhere in your TOOLS.INI file ( I have placed it in
  5. my "[M-.pas]" section so that it is loaded only when I am working on pascal
  6.  files.). After re-initializing, PASABBREV 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 pasabbrev macro. For
  10. example, pressing "w" and executing pasabbrev will yield "WHILE DO", pressing
  11. "p" and executing pasabbrev will yield "PROCEDURE ;", pressing "i" will yield
  12. "IF THEN",etc. The following is a list of keywords supported in order of
  13. priority:
  14.  
  15. "ELSE  IF","IF  THEN","FOR  DO","WHILE  DO","CASE  OF","WITH  DO",
  16. "IMPLEMENTATION ","INTERFACE ","VAR ","TYPE ","BEGIN ","END","REPEAT",
  17. "FUNCTION","ELSE ","PROCEDURE ;","UNIT ;","PROGRAM ;"
  18.  
  19.     "ei" may also be used to expand to "ELSE IF THEN","REPEAT" is expanded to
  20. "REPEAT <CR> <CR> UNTIL ;" and "BEGIN" is expanded to "BEGIN <CR> <CR> END".
  21. Since the source code is included you can add,remove keywords as desired.
  22.  
  23.     The pasabbrev 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 "pasabbrev" to the desired key.
  27.  
  28.     PASABBREV was compiled for use with M v1.02. You will have to recompile it
  29. for M version 1.00. I hope you find pasabbrev 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. (M 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.