home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
100-199
/
ff146.lzh
/
DmeMacros
/
CommentedMacros
/
Pascal.Repeat.edrc
< prev
Wrap
Text File
|
1988-05-28
|
1KB
|
40 lines
# insert lines for body of text; write marker in text to save location;
# move cursor up one line (may have to add a line if at the top) and move
# to the first character in the line (if there are no characters in the
# line, the cursor moves to the leftmost column;
repeat 3 insline `+' up firstnb
# if there is text on this line, insert a line between this line and the
# first line of the template;
if c>32 `down insline' down
# go down to end of template and insure that there is at least one blank
# line between it and any text below it;
repeat 3 down firstnb
if c>32 insline
# move back to marker and delete it;
repeat 3 up firstnb del
# write the body of the template; place cursor in position to write between
# parentheses in continuation condition;
`REPEAT' firstnb down down
`UNTIL ();' left left
# prompt for the test expression (it will printed as a string at the cursor
# location; move to blank line between keywords and indent for entry of next
# line of code;
escimm (`) firstnb up tab