home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d7xx
/
d770
/
uedit.lha
/
Uedit
/
Rich-Martin.LZH
/
Config!F
next >
Wrap
Text File
|
1988-11-15
|
2KB
|
56 lines
/* C LANGUAGE COMMANDS */
/* create comment brackets */
<alt-/: insertRgn(curFile,atCursor,"/* */",all)
do(n50,0,2)
runKey(normal-leftArrow) >
/* draw a line of commented asterisks */
<shftctl-/: typeChar(47)
do(n50,0,59) typeChar(42)
typeChar(47)
typeChar(10) >
/* create "if" structure */
<shftCtl-i:
insertRgn(curFile,atCursor,"if () {",all)
do(n50,0,1) typeChar(10)
typeChar("}")
runKey(normal-upArrow)
insertChar(curFile,9) ..tab 4 spaces
runKey(normal-upArrow) >
/* create "for" structure */
<shftCtl-f: insertRgn(curFile,atCursor,"for (i=0; i<; i++) {",all)
do(n50,0,1) typeChar(10)
typeChar("}")
runKey(normal-upArrow)
insertChar(curFile,9) ..tab 4 spaces
runKey(normal-upArrow)
do(n50,0,1) runKey(shft-tab) >
/* create "while" structure */
<shftCtl-w: insertRgn(curFile,atCursor,"while() {",all)
do(n50,0,1) typeChar(10)
typeChar("}")
runKey(normal-upArrow)
insertChar(curFile,9) ..tab 4 spaces
runKey(normal-upArrow)
do(n50,0,1) runKey(normal-rightArrow) >
/* create "switch" structure */
<shftCtl-s: insertRgn(curFile,atCursor,"switch () {",all)
typeChar(10)
insertChar(curFile,9) ..tab 4 spaces
insertRgn(curFile,atCursor,"case :",all)
typeChar(10)
insertRgn(curFile,atCursor,"default:",all)
typeChar(10)
insertChar(curFile,9) ..tab 4 spaces
insertRgn(curFile,atCursor,"break;",all)
typeChar(10)
do(n50,0,1) runKey(shft-kp7)
typeChar("}")
do(n50,0,3) runKey(normal-upArrow)
do(n50,0,1) runKey(shft-tab) >