home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / l / l040 / 10.ddi / UTILS.ZIP / BRIEF.TEM < prev    next >
Encoding:
Text File  |  1992-10-27  |  7.4 KB  |  285 lines

  1. /***********************************************************************
  2.  
  3.           Brief editor emulation for Borland/Turbo Pascal IDE.
  4.  
  5.     This file contains a Turbo Editor Macro Language (TEML) script 
  6. which emulates the Brief programmer's editor in the Borland/Turbo Pascal 
  7. IDE.  A complete description of the TEML language and the Turbo Editor 
  8. Macro Compiler (TEMC) can be found in the file "TEMC.DOC".
  9.  
  10.     The TEMC compiler can be invoked from the DOS command line as
  11. follows:
  12.  
  13.       temc [-c] brief.tem <IDE configuration file><.CMD><.TP>
  14.  
  15. The optional -c switch can also be specified as /c, and can appear in
  16. any argument position on the command line. If you use this option,
  17. any existing command table in your configuration file is thrown away
  18. before the script file is merged with those already defined. The
  19. configuration file extension must be specified as TEMC will modify both DOS
  20. and Windows IDEs config files.  Specify .CMD or .TP extentions for Windows
  21. or DOS IDE, respectively. If the .CMD file does not exist, it will be 
  22. created. The .TP file must exist, or an error is displayed.
  23.  
  24. Most of the simple Brief commands have been fully implemented.  Most
  25. of the complex commands have been either partially implemented or not
  26. implemented at all. Below is a list of the commands that have been
  27. fully or partially implemented.
  28.  
  29. IDE Binding   Brief Command              Comments
  30. -----------   ---------------             -------------------------
  31. F10           Command                    Activates system menu
  32. Ins           Paste Scrap                Pastes current clipboard selection
  33. Del           Delete                     Deletes current character only
  34. PgDn          Page Down
  35. PgUp          Page Up
  36. UpAr          Cursor Up
  37. DnAr          Cursor Down
  38. Star          Undo
  39. Plus          Copy to Scrap              Copies block to clipboard
  40. Minus         Cut to Scrap               Cuts block to clipboard
  41. Ctrl-D        Scroll Down
  42. Ctrl-E        Scroll Up
  43. Ctrl-G        Routines                   Activates the search menu
  44.                                          Find function can be selected here
  45. Ctrl-N        Next Error
  46. Ctrl-P        Error list                 Moves to previous error
  47. Ctrl-K        Delete To BOL              Deletes to beginning of line
  48. Ctrl-U        Redo
  49. Ctrl-W        Toggle Backup              Activates Options menu
  50.                                          Backup files can be toggled here
  51. Ctrl-F5       Case Sensitivity           Selects search dialog box
  52.                                          Case sensitivity can be toggled here
  53. Ctrl-F6       Toggle Regular Exp.        Selects search dialog box
  54.                                          Regular expressions can be toggled here
  55. Ctrl-bksp     Delete Prev Word
  56. Alt-A         Drop anchor                Sets beginning of block
  57. Alt-B         Buffer List                Lists ALL open windows
  58. Alt-G         Goto line                  Activates the search menu
  59.                                          Goto line can be selected here
  60. Alt-H         Help                       Context sensitive help
  61. Alt-I         Toggle Insert
  62. Alt-J+0       Goto BookMark(0)           Only marks 0-5 are supported
  63. Alt-J+1       Goto BookMark(1)             :
  64. Alt-J+2       Goto BookMark(2)             :
  65. Alt-J+3       Goto BookMark(3)             :
  66. Alt-J+4       Goto BookMark(4)             :
  67. Alt-J+5       Goto BookMark(5)           by this macro file
  68. Alt-K         Delete To EOL
  69. Alt-L         Mark Line
  70. Alt-M         Mark                       Sets beginning of block
  71. Alt-N         Next Buffer                Cycles to next open window
  72. Alt-P         Print Block
  73. Alt-Q         Quote                      Insert literal character
  74. Alt-U         Undo
  75. Alt-V         Version                    Activates system menu
  76.                                          About can be selected here
  77. Alt-X         Quit
  78. Alt-Z         DOS Shell                  Activates the file menu
  79.                                          OS Shell can be selected here
  80. Alt-F2        Zoom Window
  81.                                          IDE does not support inc. search
  82. Alt-F6        Translate Backwards        Prompts for replace string
  83.                                          Option to go backward can be selected
  84.  
  85. ****************************************************************/
  86.  
  87. /******* Macros ********/
  88.  
  89. MACRO MacScrollUp
  90.   ScrollScreenUp;
  91.   FixCursorPos;
  92. END;
  93.  
  94. MACRO MacScrollDown
  95.   ScrollScreenDown;
  96.   FixCursorPos;
  97. END;
  98.  
  99. MACRO MacPageUp
  100.   FixScreenPos;
  101.   PageScreenDown;
  102.   FixCursorPos;
  103. END;
  104.  
  105. MACRO MacPageDown
  106.   FixScreenPos;
  107.   PageScreenUp;
  108.   FixCursorPos;
  109. END;
  110.  
  111. MACRO MacDeleteLine
  112.   DeleteLine;
  113.   LeftOfLine;
  114. END;
  115.  
  116. MACRO MacTopOfScreen
  117.   SetPrevPos;
  118.   TopOfScreen;
  119. END;
  120.  
  121. MACRO MacBottomOfScreen
  122.   SetPrevPos;
  123.   BottomOfScreen;
  124. END;
  125.  
  126. MACRO MacHomeCursor
  127.   SetPrevPos;
  128.   HomeCursor;
  129. END;
  130.  
  131. MACRO MacEndCursor
  132.   SetPrevPos;
  133.   EndCursor;
  134. END;
  135.  
  136. MACRO MacOpenLine
  137.   RightOfLine;
  138.   LiteralChar(13);
  139. END;
  140.  
  141.  
  142. MACRO MacSetBlockBeg
  143.   HideBlock;
  144.   SetBlockBeg;
  145. END;
  146.  
  147. MACRO MacSetBlockEnd
  148.   HideBlock;
  149.   SetBlockEnd;
  150.   HighlightBlock;
  151. END;
  152.  
  153. MACRO MacMarkLine
  154.   HideBlock;
  155.   SetTempPos;
  156.   RightOfLine;
  157.   CursorCharRight;
  158.   SetBlockEnd;
  159.   CursorCharLeft;
  160.   LeftOfLine;
  161.   SetBlockBeg;
  162.   HighlightBlock;
  163.   MoveToTempPos;
  164. END;
  165.  
  166. MACRO MacMarkWord
  167.   HideBlock;
  168.   SetTempPos;
  169.   CursorRight;
  170.   WordLeft;
  171.   RightOfWord;
  172.   SetBlockEnd;
  173.   WordLeft;
  174.   SetBlockBeg;
  175.   HighlightBlock;
  176.   MoveToTempPos;
  177. END;
  178.  
  179. MACRO MacMoveToBlockBeg
  180.   SetPrevPos;
  181.   MoveToBlockBeg;
  182.   CenterFixScreenPos;
  183. END;
  184.  
  185. MACRO MacMoveToBlockEnd
  186.   SetPrevPos;
  187.   MoveToBlockEnd;
  188.   CenterFixScreenPos;
  189. END;
  190.  
  191. MACRO MacMoveToPrevPos
  192.   SwapPrevPos;
  193.   CenterFixScreenPos;
  194. END;
  195.  
  196. MACRO MacCopyBlock
  197.   CopyBlock;
  198.   HideBlock;
  199.   CenterFixScreenPos;
  200. END;
  201.  
  202. MACRO MacMoveBlock
  203.   MoveBlock;
  204.   HighlightBlock;
  205.   CenterFixScreenPos;
  206. END;
  207.  
  208. MACRO MacBreakLine
  209.   LiteralChar(13);
  210.   CursorCharLeft;
  211. END;
  212.  
  213. MACRO MacDeleteNextWord
  214.   WordRight;
  215.   MacMarkWord;
  216.   DeleteBlock;
  217.   CenterFixScreenPos;
  218. END;
  219.  
  220. MACRO MacDeletePrevWord
  221.   WordLeft;
  222.   MacMarkWord;
  223.   DeleteBlock;
  224.   CenterFixScreenPos;
  225. END;
  226.  
  227. MACRO MacDeleteToBOL
  228.   SetPrevPos;
  229.   LeftOfLine;
  230.   SetBlockBeg;
  231.   MoveToPrevPos;
  232.   SetBlockEnd;
  233.   DeleteBlock;
  234.   CenterFixScreenPos;
  235. END;
  236.  
  237. /******* Brief Key Bindings  ******/
  238.  
  239. F10       : Menu;
  240.  
  241. Ins       : ClipPaste;
  242. Del       : DeleteChar;
  243. PgDn      : MacPageDown;
  244. PgUp      : MacPageUp;
  245. UpAr      : CursorUp;
  246. DnAr      : CursorDown;
  247. Star      : Undo;
  248. Plus      : ClipCopy;
  249. Minus     : ClipCut;
  250.  
  251. Ctrl-D    : MacScrollDown;
  252. Ctrl-E    : MacScrollUp;
  253. Ctrl-G    : SearchMenu;
  254. Ctrl-N    : NextError;
  255. Ctrl-P    : PrevError;
  256. Ctrl-K    : MacDeleteToBOL;
  257. Ctrl-U    : Redo;
  258. Ctrl-W    : OptionsMenu;
  259. Ctrl-F5   : GetFindString;
  260. Ctrl-F6   : GetFindString;
  261. Ctrl-bksp : MacDeletePrevWord;
  262.  
  263. Alt-A     : SetBlockBeg;
  264. Alt-B     : WindowList;
  265. Alt-G     : SearchMenu;
  266. Alt-H     : Help;
  267. Alt-I     : ToggleInsert;
  268. Alt-J+0   : MoveToMark(0);
  269. Alt-J+1   : MoveToMark(1);
  270. Alt-J+2   : MoveToMark(2);
  271. Alt-J+3   : MoveToMark(3);
  272. Alt-J+4   : MoveToMark(4);
  273. Alt-J+5   : MoveToMark(5);
  274. Alt-K     : DeleteToEOL;
  275. Alt-L     : MacMarkLine;
  276. Alt-M     : SetBlockBeg;
  277. Alt-N     : NextWindow;
  278. Alt-P     : PrintBlock;
  279. Alt-Q     : LiteralChar;
  280. Alt-U     : Undo;
  281. Alt-X     : Quit;
  282. Alt-Z     : FileMenu;
  283. Alt-F2    : ZoomWindow;
  284. Alt-F6    : GetFindString;
  285.