home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
MABBREV.ZIP
/
PASABBRV.DOC
< prev
next >
Wrap
Text File
|
1990-01-21
|
2KB
|
38 lines
The PASABBREV extension implements templates for various pascal keywords in a
fashion similar to the template macros in the Brief editor. To set up, copy the
PASABBRV.MXT file to the directory where your TOOLS.INI is kept, place the line
"load:$INIT:pasabbrv.mxt" somewhere in your TOOLS.INI file ( I have placed it in
my "[M-.pas]" section so that it is loaded only when I am working on pascal
files.). After re-initializing, PASABBREV 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 pasabbrev macro. For
example, pressing "w" and executing pasabbrev will yield "WHILE DO", pressing
"p" and executing pasabbrev will yield "PROCEDURE ;", pressing "i" will yield
"IF THEN",etc. The following is a list of keywords supported in order of
priority:
"ELSE IF","IF THEN","FOR DO","WHILE DO","CASE OF","WITH DO",
"IMPLEMENTATION ","INTERFACE ","VAR ","TYPE ","BEGIN ","END","REPEAT",
"FUNCTION","ELSE ","PROCEDURE ;","UNIT ;","PROGRAM ;"
"ei" may also be used to expand to "ELSE IF THEN","REPEAT" is expanded to
"REPEAT <CR> <CR> UNTIL ;" and "BEGIN" is expanded to "BEGIN <CR> <CR> END".
Since the source code is included you can add,remove keywords as desired.
The pasabbrev 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 "pasabbrev" to the desired key.
PASABBREV was compiled for use with M v1.02. You will have to recompile it
for M version 1.00. I hope you find pasabbrev useful. I don't believe I used any
M functions that do not have a v1.00 equivalent, so it should still work.
(M 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