home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / p2revw.zip / P2REVW.INF (.txt)
OS/2 Help File  |  1994-10-25  |  157KB  |  1,511 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Introduction  ΓòÉΓòÉΓòÉ
  3.  
  4. Compuware Corporation introduces a new code editor for demanding OS/2 
  5. programmers who need an editor they can tailor to their specific requirements. 
  6. PREDITOR/2 is designed for OS/2 programmers who want to adjust their tools to 
  7. reach peak productivity. 
  8.  
  9. PREDITOR/2, currently available by mail from Compuware and Indelible Blue, is a 
  10. graphical, 32-bit editor equipped with powerful features, including the ability 
  11. to display multiple windows, search across multiple files, edit and compile 
  12. simultaneously, and emulate other editors.  But for programmers who want more, 
  13. Compuware has taken the unusual step of providing access to most of 
  14. PREDITOR/2's own source code so you can customize existing features to your 
  15. liking and create new options. 
  16.  
  17. With PREDITOR/2's Multiple Document Interface (MDI), you can view different 
  18. files in separate windows, or different sections of the same file in multiple 
  19. windows.  You can work in as many windows, buffers, and files as you want and 
  20. with as large a file as your system can handle. And you can undo and redo an 
  21. unlimited number of changes. 
  22.  
  23. PREDITOR/2's dialog boxes enable you to quickly customize the editor's look and 
  24. feel. You can also point and click to set the editor to emulate the commands 
  25. and keystrokes of all previous generation editors--BRIEF, vi, Common User 
  26. Access (CUA), Emacs, and ISPF--and to automatically launch the compiler 
  27. appropriate for the programming language in use, whether it's C, C++, COBOL, 
  28. REXX, or a host of others. 
  29.  
  30. To familiarize yourself with how PREDITOR/2 works with you to adapt to your 
  31. programming style and increase your productivity, read through this document 
  32. and test the product for yourself. 
  33.  
  34.  
  35. ΓòÉΓòÉΓòÉ 1.1. How to Use this Document ΓòÉΓòÉΓòÉ
  36.  
  37. The PREDITOR/2 Reviewer's Guide is designed to introduce you to the product's 
  38. features and highlight a few features for you to test. Double-click on the 
  39. section you want to review, or try out a few features that we have chosen to 
  40. guide you through.  For a list of sections, see the "Contents" window. 
  41.  
  42.  
  43. ΓòÉΓòÉΓòÉ 2. Installation and System Requirements ΓòÉΓòÉΓòÉ
  44.  
  45. PREDITOR/2 requires your system to have supporting hardware and software in 
  46. order to install and run the product. 
  47.  
  48. System Requirements 
  49.  
  50. o IBM-compatible 386 or higher 
  51.  
  52. o Minimum of 8MB RAM 
  53.  
  54. o 5MB of available disk space for installation 
  55.  
  56. o OS/2 Version 2.0 with Service Pack 6055 or higher. 
  57.  
  58. In this Section. . . 
  59.  
  60. To Install 
  61.  
  62. Installation Utility 
  63.  
  64.  
  65. ΓòÉΓòÉΓòÉ 2.1. To Install ΓòÉΓòÉΓòÉ
  66.  
  67. You can install PREDITOR/2 in a matter of minutes. 
  68.  
  69. To install PREDITOR/2, 
  70.  
  71.  1. Insert Installation Diskette #1 into the A: drive. 
  72.  
  73.  2. In the OS/2 window, type A: at the command prompt. 
  74.  
  75.  3. Type install and press Enter. 
  76.  
  77.  4. Follow the screen prompts to complete the installation process. 
  78.  
  79.     When the product is installed, the PREDITOR/2 folder icon appears on your 
  80.     display. 
  81.  
  82.  5. Reboot your system for the new paths to take effect. 
  83.  
  84.  
  85. ΓòÉΓòÉΓòÉ 2.2. Installation Utility ΓòÉΓòÉΓòÉ
  86.  
  87. Unlike most OS/2 products, PREDITOR/2 provides an installation utility which 
  88. you use to update, restore, or delete the editor from your system. 
  89.  
  90. To perform one of these activities, 
  91.  
  92.  1. Double-click on the PREDITOR/2 folder icon. 
  93.  
  94.     The PREDITOR/2 - Icon View window appears, displaying several icons. 
  95.  
  96.  2. Double-click on the Installation Utility icon. 
  97.  
  98.     The Installation and Maintenance window opens, displaying a list of 
  99.     products you can work with. 
  100.  
  101.  3. Select PREDITOR/2 2.0 from this list. 
  102.  
  103.  4. Select the Action menu from the menu bar. 
  104.  
  105.     This menu displays the different ways to modify the editor on your system. 
  106.  
  107.  5. Change the editor's state as you desire, or simply close the Installation 
  108.     Utility by double-clicking in the box at the upper left corner of the 
  109.     window or selecting Exit from the File menu. 
  110.  
  111.  
  112. ΓòÉΓòÉΓòÉ 3. Starting PREDITOR/2 ΓòÉΓòÉΓòÉ
  113.  
  114. You only have to load PREDITOR/2 once each time you reboot your system.  After 
  115. your initial load, you can minimize the editor and open it through the Stub 
  116. program. 
  117.  
  118. In this Section. . . 
  119.  
  120. Loading 
  121.  
  122. The Stub Program 
  123.  
  124.  
  125. ΓòÉΓòÉΓòÉ 3.1. Loading ΓòÉΓòÉΓòÉ
  126.  
  127. To load PREDITOR/2, 
  128.  
  129.  1. Double-click on the PREDITOR/2 folder icon. The PREDITOR/2 - Icon View 
  130.     dialog box is displayed on your screen. 
  131.  
  132.  2. Double-click on one of two icons in this dialog box: 
  133.  
  134.     The PREDITOR/2 icon opens the editor to a new empty file. 
  135.  
  136.     The Execute me FIRST! icon opens the editor and the README.TXT file.  This 
  137.     file contains code changes or additional product information not available 
  138.     at the time the documentation was printed, and is most useful to new users. 
  139.  
  140.     or 
  141.  
  142.     Type "C" at the OS/2 command prompt. 
  143.  
  144.     The main editor window is displayed. 
  145.  
  146. Note:  Personalizing the Editor 
  147.  
  148. The Personalizing PREDITOR/2 section shows you how to alter PREDITOR/2 so that 
  149. your personalized preferences are automatically set each time you open the 
  150. editor. 
  151.  
  152.  
  153. ΓòÉΓòÉΓòÉ 3.2. The Stub Program ΓòÉΓòÉΓòÉ
  154.  
  155. A benefit of using PREDITOR/2 is your ability to quickly load the editor from 
  156. your OS/2 command line. The first time you run PREDITOR/2 (C.EXE), it starts an 
  157. editor session.  The stub program enables you to open a file in an already 
  158. running editor session, at the exact location where you left off.  Most 
  159. products reload a copy of the product, while PREDITOR/2 opens the same copy. 
  160. The stub program saves you time that other products require. 
  161.  
  162. To return to PREDITOR/2 via the stub program, 
  163.  
  164.  1. Open an OS/2 window. 
  165.  
  166.  2. Type C or C.EXE at the command prompt and press Enter. 
  167.  
  168. or 
  169.  
  170.  1. Double-click on the PREDITOR/2 folder icon. 
  171.  
  172. The editor window is displayed. 
  173.  
  174.  
  175. ΓòÉΓòÉΓòÉ 3.2.1. Advantages to Using the Stub ΓòÉΓòÉΓòÉ
  176.  
  177. Quick Loading Time 
  178.  
  179. The first time you run C.EXE, it loads the full editor.  After that (assuming 
  180. you do not exit the editor), C.EXE loads quickly and passes its command line 
  181. parameters to the editor, which is already running.  Any files specified are 
  182. immediately opened. 
  183.  
  184. Convenient Access 
  185.  
  186. From an OS/2 window, you can easily start the editor using the stub program. 
  187. If you know the names of files that you want to edit, you can have these files 
  188. quickly loaded, open, and ready to edit.  For example, typing "C C:\CONFIG.SYS 
  189. *.CPP" displays the editor with the CONFIG.SYS file and all .CPP files in the 
  190. current directory ready to edit. 
  191.  
  192. Drag and Drop 
  193.  
  194. As an alternative to typing a file name to start the editor with a specified 
  195. file, you can use the drag and drop method.  Simply drag and drop a file object 
  196. onto the stub icon (this icon was automatically created for you) or onto the 
  197. running editor. The editor is displayed in the foreground with the specified 
  198. file loaded, open, and ready to edit. 
  199.  
  200. WorkFrame/2 Support 
  201.  
  202. If you use the IBM WorkFrame/2, use the -W parameter when invoking C.EXE.  This 
  203. parameter enables you to load files in one running editor rather than loading a 
  204. new editor each time you double-click on a file name.  PREDITOR/2 also uses the 
  205. wf_goto_next_error() and wf_goto_prev_error() functions to step through the 
  206. list of WorkFrame/2 compile errors. 
  207.  
  208.  
  209. ΓòÉΓòÉΓòÉ 4. Personalizing PREDITOR/2 ΓòÉΓòÉΓòÉ
  210.  
  211. PREDITOR/2 is designed as a powerful editor which you can so fully adapt to 
  212. your personal preferences that the product becomes almost transparent.  It is 
  213. an editor that works the way you want it to work and doesn't get in your way. 
  214. By personalizing the editor, you can more easily do your job without a lot of 
  215. overhead. 
  216.  
  217. There are three approaches toward personalizing your editor: 
  218.  
  219. Customizing using the Settings notebook. 
  220.  
  221. Configuring by editing the CPE.CFG file and LOCAL.PEL file. 
  222.  
  223. Programming with the Professional Extension Language. 
  224.  
  225.  
  226. ΓòÉΓòÉΓòÉ 4.1. Customizing  ΓòÉΓòÉΓòÉ
  227.  
  228. One of the ways in which PREDITOR/2 distinguishes itself from other text 
  229. editors is its extensive customization options.  Customizing your work 
  230. environment to suit your needs can increase your productivity.  However, if 
  231. customizing your editor is a time-consuming and tedious task, you are not 
  232. likely to do it. Fortunately, PREDITOR/2 enables you to make modifications 
  233. easily and become more productive more quickly. 
  234.  
  235. In this Section. . . 
  236.  
  237. The Options Menu 
  238.  
  239. Notebook Settings 
  240.  
  241. Changing Notebook Settings 
  242.  
  243. More Features You Can Customize 
  244.  
  245.  
  246. ΓòÉΓòÉΓòÉ 4.1.1. The Options Menu ΓòÉΓòÉΓòÉ
  247.  
  248. To customize, simply click on the Options menu in the menu bar and select the 
  249. feature you wish to modify. PREDITOR/2 has intuitive dialog boxes that quickly 
  250. guide you through making changes. 
  251.  
  252.  
  253. ΓòÉΓòÉΓòÉ 4.1.2. Notebook Settings ΓòÉΓòÉΓòÉ
  254.  
  255. The first step to personalizing your editor is to open the Settings notebook. 
  256. This notebook provides an easy, user-friendly method for customizing your 
  257. editor, window, and buffer behaviors. 
  258.  
  259. In this Section. . . 
  260.  
  261. To Open the Settings Notebook... 
  262.  
  263. Notebook Topics 
  264.  
  265. Notebook Subtopics 
  266.  
  267. Changing Notebook Settings 
  268.  
  269. More Features You Can Customize. . . 
  270.  
  271.  
  272. ΓòÉΓòÉΓòÉ 4.1.2.1. To Open the Settings Notebook... ΓòÉΓòÉΓòÉ
  273.  
  274.  1. Select the Options menu on the menu bar. 
  275.  
  276.  2. Select the Settings option. 
  277.  
  278.     The Settings dialog box is displayed.  By default, this notebook opens to 
  279.     the Editor Settings tab. 
  280.  
  281.  
  282. ΓòÉΓòÉΓòÉ 4.1.2.2. Notebook Topics ΓòÉΓòÉΓòÉ
  283.  
  284. The Settings notebook is divided into three topics: 
  285.  
  286. Editor--settings which dictate how the editor behaves.  These settings affect 
  287. all buffers and windows. 
  288.  
  289. Window--settings which dictate how a specific window behaves. 
  290.  
  291. Buffer--settings which dictate how a specific buffer behaves. 
  292.  
  293. These topics are displayed on tabs along the right side of the notebook, as 
  294. shown below. Clicking on a tab will "turn" the notebook page to that topic. 
  295.  
  296.  
  297. ΓòÉΓòÉΓòÉ 4.1.2.3. Subtopics ΓòÉΓòÉΓòÉ
  298.  
  299. Each topic has related subtopics which are named on the tabs appearing at the 
  300. bottom of the notebook. These subtopics are specific to a topic and change 
  301. accordingly. Not all editor subtopic tabs can appear along the bottom of the 
  302. notebook at one time.  By clicking on the arrows at the lower right corner of 
  303. the notebook page, you can turn the pages and thus see additional subtopic 
  304. tabs. 
  305.  
  306. The lists below name each Settings notebook subtopic and the preferences you 
  307. can specify on the corresponding subtopic page. 
  308.  
  309. Editor Settings Subtopics 
  310.  
  311. Emulation--Select emulation mode. 
  312.  
  313. ISPF--Specify parameters for the ISPF emulation mode. 
  314.  
  315. Save--Specify Save preferences. 
  316.  
  317. Search--Specify Search preferences. 
  318.  
  319. Status bar--Set the status bar's behavior.  (For example, select prompts for 
  320. the Brief, vi, and Emacs emulations.) 
  321.  
  322. Message Level--Select the level of messaging you would like to see when working 
  323. in the editor. 
  324.  
  325. Directories--Indicate the directories you would like to use for the editor's 
  326. files. 
  327.  
  328. Extensions--Specify parameters for your compilers, such as:  extension, 
  329. compiler, template, matching pairs, tab stops, and margins. 
  330.  
  331. VCS--Specify the commands the editor executes when you have the version control 
  332. system (VCS) enabled and want to use the get and put commands. 
  333.  
  334. Window Settings Subtopics 
  335.  
  336. Miscellaneous--Specify general information for the current window, such as 
  337. scroll bar behavior and line number formats. 
  338.  
  339. Visible strings--Indicate how you want certain parts of the text in your window 
  340. to appear. 
  341.  
  342. Scroll variables--Specify the number of lines or columns the cursor will move 
  343. when you scroll. 
  344.  
  345. Buffer Settings Subtopics 
  346.  
  347. Buffer flags--Specify common buffer settings, such as word processing 
  348. activities and read-only status. 
  349.  
  350. Tabs/Margins--Specify tabs and margins for buffers. 
  351.  
  352.  
  353. ΓòÉΓòÉΓòÉ 4.1.3. Changing Notebook Settings ΓòÉΓòÉΓòÉ
  354.  
  355. Most notebook settings can be changed by selecting or clearing a check box, 
  356. selecting a radio button, or entering a value in a text box.  Selections are 
  357. implemented when you change notebook pages. 
  358.  
  359. Setting Default Values 
  360.  
  361. The Make default button is included on all Window and Buffer notebook settings 
  362. pages.  By clicking on the Make default button, you can apply the settings you 
  363. select to all new windows or buffers. 
  364.  
  365. For example, 
  366.  
  367.  1. Select the Buffer topic tab at the right side of the notebook. 
  368.  
  369.  2. Click on the Margins/Tabs subtopic tab at the bottom of the notebook. 
  370.  
  371.  3. Type your tab and margin preferences in the text boxes. 
  372.  
  373.  4. Click on the Make default button. 
  374.  
  375.     The preferences you entered will now apply to all new buffers. 
  376.  
  377. Applying Settings to All Windows and Buffers 
  378.  
  379. You will see Apply to all check boxes on all Window and Buffer notebook 
  380. settings pages.  By clicking on the check box (so that a check mark symbol 
  381. appears in the box) you can apply your selected settings to all current windows 
  382. or buffers. 
  383.  
  384.  
  385. ΓòÉΓòÉΓòÉ 4.1.4. More Features You Can Customize ΓòÉΓòÉΓòÉ
  386.  
  387. From the Options menu on the menu bar, you can also customize: 
  388.  
  389. Colors 
  390.  
  391. Fonts 
  392.  
  393. Key bindings 
  394.  
  395. Keyboard macros 
  396.  
  397.  
  398. ΓòÉΓòÉΓòÉ 4.2. Configuring ΓòÉΓòÉΓòÉ
  399.  
  400. When you load PREDITOR/2, it goes through an initialization process that 
  401. includes executing the function local_setup(), and reading and executing the 
  402. statements in the CPE.CFG (configuration) file.  The function local_setup() is 
  403. located in the LOCAL.PEL file. 
  404.  
  405. In this Section. . . 
  406.  
  407. CPE.CFG File 
  408.  
  409. LOCAL.PEL File 
  410.  
  411.  
  412. ΓòÉΓòÉΓòÉ 4.2.1. CPE.CFG File ΓòÉΓòÉΓòÉ
  413.  
  414. This file stores user options that are likely to change often.  Because the 
  415. CPE.CFG file does not have to be recompiled to implement changes, you can 
  416. change options stored here and the editor will recognize these changes the next 
  417. time it is started. Notebook settings and the state of the editor are also 
  418. stored in the CPE.CFG file. 
  419.  
  420. The CPE.CFG file is similar to your AUTOEXEC.BAT file or CONFIG.SYS file, in 
  421. that it initiates settings and performs tasks you want completed every time you 
  422. start PREDITOR/2. 
  423.  
  424. Note:  Online examples 
  425.  
  426. To learn more about configuring the CPE.CFG file, refer to the example.cfg file 
  427. in the CPE directory. (By default, this directory is "C:\CPE".) 
  428.  
  429. Note:  Quick Loading 
  430.  
  431. The initial loading of PREDITOR/2 may be slowed down if you store too many 
  432. options in the CPE.CFG file.  Therefore, use the LOCAL.PEL file to indicate 
  433. options that are not likely to change often. 
  434.  
  435.  
  436. ΓòÉΓòÉΓòÉ 4.2.2. LOCAL.PEL File ΓòÉΓòÉΓòÉ
  437.  
  438. This file contains the local_setup() function, which reads and executes the 
  439. statements in the CPE.CFG file.  Here, you can specify options that will not 
  440. change often. 
  441.  
  442. You can also specify keystrokes that correspond with activities you frequently 
  443. perform.  These key definitions are located in the local_keys() function.  Key 
  444. definitions are applied to all emulation modes. 
  445.  
  446. To modify LOCAL.PEL, 
  447.  
  448.  1. Select Open from the File menu.  The Open dialog box is displayed. 
  449.  
  450.  2. Enter the directory and name of your LOCAL.PEL file in the Open Filename 
  451.     text box.  For example, if you installed PREDITOR/2 in the default 
  452.     directory, type "c:\cpe\pel\local.pel" in this text box. 
  453.  
  454.  3. Click on the OK button.  The LOCAL.PEL file appears in your current window. 
  455.  
  456.  4. Edit the file to include your preferred options. 
  457.  
  458. The editor will recognize your changes after you re-compile LOCAL.PEL. 
  459.  
  460. To recompile LOCAL.PEL, 
  461.  
  462.  1. Exit the editor. 
  463.  
  464.  2. Open an OS/2 window. 
  465.  
  466.  3. Make current the PEL subdirectory of your editor directory (the default 
  467.     directory is "C:\CPE\PEL"). 
  468.  
  469.  4. Execute the MAKE_AE.CMD file. 
  470.  
  471.     You have just recompiled LOCAL.PEL. PREDITOR/2 will now recognize your 
  472.     options and key definitions every time you run the editor. 
  473.  
  474.  
  475. ΓòÉΓòÉΓòÉ 4.3. Programming ΓòÉΓòÉΓòÉ
  476.  
  477. For customers who want more, Compuware has taken the unusual step of providing 
  478. access to most of PREDITOR/2's own source code, so you can personalize existing 
  479. features to your liking and create new options. 
  480.  
  481. In this Section. . . 
  482.  
  483. Our C-Like Extension Language 
  484.  
  485. PEL Debugger 
  486.  
  487. Command Dialog Box 
  488.  
  489. PEL Compiler 
  490.  
  491. More About PEL 
  492.  
  493.  
  494. ΓòÉΓòÉΓòÉ 4.3.1. Our C-Like Extension Language ΓòÉΓòÉΓòÉ
  495.  
  496. PREDITOR/2's configurability lies largely with its Professional Extension 
  497. Language (PEL). Therefore, you have the option to create a new function or 
  498. change an existing function to your specifications.  PEL encourages 
  499. customization and configuration through its industry acceptance and 
  500. ease-of-use. 
  501.  
  502. PEL is the piece of PREDITOR/2 that truly makes this editor unique.  You can 
  503. use PEL to make your editor work according to the way you do. 
  504.  
  505.  
  506. ΓòÉΓòÉΓòÉ 4.3.2. PEL Debugger ΓòÉΓòÉΓòÉ
  507.  
  508. The PEL debugger is a tool to help you quickly and easily debug your PEL 
  509. functions.  This debugger operates much like a "C" debugger. 
  510.  
  511. To use the PEL debugger, 
  512.  
  513.  1. Select the Tools menu on the menu bar. 
  514.  
  515.  2. Click on the PEL debugger menu item.  The PEL debugger is displayed. 
  516.  
  517.  3. From the File menu, open the file you want to debug. 
  518.  
  519.  4. Set breakpoints (by double-clicking at the beginning of a line) wherever 
  520.     necessary. 
  521.  
  522.  5. Click on the Go button. 
  523.  
  524. The PEL debugger window is hidden and the PREDITOR/2 window is displayed.  At 
  525. this point you can continue using the editor normally until the PEL code in 
  526. which you have set breakpoints executes. 
  527.  
  528. Before Debugging 
  529.  
  530. To debug PEL functions, you must first compile the .AE file without the 
  531. -compress option.  Make this change by editing the MAKE_AE.CMD file in your PEL 
  532. subdirectory.  Then rename the file CPE.AE to CPE.BAK and recompile the 
  533. function library by executing MAKE_AE.CMD. 
  534.  
  535. When a breakpoint is executed, the editor window is disabled and the debugger 
  536. window appears on your screen. 
  537.  
  538. This window highlights the source code of the current breakpoint.  You can 
  539. query the value of any variable, step through PEL code, and determine the 
  540. source of errors.  For more information on using the PEL debugger, refer to 
  541. Chapter 5 in the PREDITOR/2 User's Guide, "Using the Professional Extension 
  542. Language (PEL)." 
  543.  
  544.  
  545. ΓòÉΓòÉΓòÉ 4.3.3. Command Dialog Box ΓòÉΓòÉΓòÉ
  546.  
  547. PREDITOR/2 provides a command dialog box from which you can issue PEL commands 
  548. or display the value of a variable.  This provides you easy access to all PEL 
  549. commands. 
  550.  
  551. To use the command dialog box, 
  552.  
  553.  1. Select the Tools menu from the menu bar. 
  554.  
  555.  2. Click on the Command dialog menu item.  The Enter Command dialog box is 
  556.     displayed. 
  557.  
  558.  3. Enter a PEL command or select a command from the command history list. 
  559.  
  560.  4. Click on the OK button. 
  561.  
  562. Note: 
  563.  
  564. To display the value of a PEL variable, prefix it with a question mark. 
  565.  
  566. For example:   ?editor_title   displays the name of the editor. 
  567.  
  568.  
  569. ΓòÉΓòÉΓòÉ 4.3.4. PEL Compiler ΓòÉΓòÉΓòÉ
  570.  
  571. The benefit of the PEL compiler is that it is an incremental compiler, so that 
  572. when you recompile your CPE.AE function library, only the changed modules are 
  573. recompiled.  Thus, you spend a minimal amount of time waiting for the function 
  574. library to recompile after making minor changes. 
  575.  
  576. The PEL compiler supplied with PREDITOR/2 is a special version of Thompson 
  577. Automation, Inc.'s AWK compiler.  The AWK compiler creates stand-alone 
  578. executables from AWK source code, while the PEL compiler produces programs that 
  579. PREDITOR/2 can execute. 
  580.  
  581.  
  582. ΓòÉΓòÉΓòÉ 4.3.5. The PEL Advantage ΓòÉΓòÉΓòÉ
  583.  
  584. In addition to changing the  LOCAL.PEL file, you can modify other PEL source 
  585. files or make your own file. 
  586.  
  587. After compiling the editor, you can assign a key to your PEL functions.  You 
  588. can define keys for your new functions in the local_key() function, in the 
  589. CPE.CFG file, or in the Keybindings dialog box (found on the Options menu). 
  590.  
  591.  
  592. ΓòÉΓòÉΓòÉ 5. Search and Change ΓòÉΓòÉΓòÉ
  593.  
  594. The ability to search for and change information is extremely valuable. Because 
  595. PREDITOR/2 handles unusually large files, functional search and change support 
  596. streamlines the process of updating your code. 
  597.  
  598. In this Section. . . 
  599.  
  600. Search 
  601.  
  602. Change 
  603.  
  604. Using Regular Expressions 
  605.  
  606. Group and Match Group Searching 
  607.  
  608.  
  609. ΓòÉΓòÉΓòÉ 5.1. Search ΓòÉΓòÉΓòÉ
  610.  
  611. The Search menu contains options that enable you to perform a variety of 
  612. searches, based on different types of search criteria.  When you invoke a 
  613. search, the current default search settings are presented in the Find String 
  614. dialog box.  You can change any of these settings to search as you wish. 
  615.  
  616. To initiate a search, 
  617.  
  618.  1. Select the Search menu from the menu bar. The Search menu is displayed on 
  619.     your screen.  The items in this menu guide you toward performing a 
  620.     detailed, direct search according to your needs.  In this example, we will 
  621.     search for a string, using wildcards in the string's name. 
  622.  
  623.  2. Select the Find string option from the Search menu. 
  624.  
  625.  3. Type local_.*\( in the Search value text box. 
  626.  
  627.  4. In the Scope group box, select the File(s) radio button. 
  628.  
  629.  5. Enter the files you would like to search in the Files to search text box. 
  630.     For this example, type "c:\cpe\pel\*.pel" (or substitute your installation 
  631.     directory.) 
  632.  
  633.  6. Click on the Options button.  The Find String dialog box enlarges, 
  634.     presenting options that enable you to further define your search. Click on 
  635.     any of these options that pertain to how you would like to conduct your 
  636.     search. This Options button has been selected in the example above. 
  637.  
  638.  7. Select the Find all button. 
  639.  
  640.     The editor searches for all occurrences of the string local_.*\( in the PEL 
  641.     file. You can follow the editor's search progress by watching found string 
  642.     locations appear in the Find All List dialog box. 
  643.  
  644.     When the search is complete, the number of files found is displayed in the 
  645.     status bar at the lower left of the Find All List dialog box. You can halt 
  646.     the search process at any time by selecting the Stop button from the dialog 
  647.     box. 
  648.  
  649.     Use the buttons on the Find All List dialog box to view the strings 
  650.     matching local_.*\(.  As you move through the strings listed in the Find 
  651.     All List dialog box, the cursor in the main editor window moves to the 
  652.     corresponding file and location. 
  653.  
  654. Note: ERR buttons 
  655.  
  656. The PREDITOR/2 toolbar displays two buttons which enable you to more quickly 
  657. flip through a list of matching search strings without using the Find All List 
  658. dialog box.  These are the ERR buttons, located near the right end of the 
  659. toolbar: 
  660.  
  661. When you have completed a search and the results are presented in the Find All 
  662. List dialog box, 
  663.  
  664.  1. Minimize the Find All List dialog box by clicking on the upper right corner 
  665.     of the dialog box. 
  666.  
  667.  2. Click on the ERR buttons to move forward and backward through the results 
  668.     list.  Your cursor will automatically move to the next occurrence found by 
  669.     the search process. 
  670.  
  671. Note:  Quick Context-Sensitive Search 
  672.  
  673. Use the pop-up menu for a quick, context-sensitive search.  Within the buffer 
  674. you are searching, simply move the cursor to the word you are searching for, 
  675. press and release the right mouse button, and select the Find String menu item 
  676. from the pop-up menu that appears. 
  677.  
  678.  
  679. ΓòÉΓòÉΓòÉ 5.1.1. Change ΓòÉΓòÉΓòÉ
  680.  
  681. The Change option in the Search menu enables you to replace a specific string 
  682. with a new string.  This option works only in your current buffer. 
  683.  
  684. To replace a string, 
  685.  
  686.  1. Select Change from the Search menu. 
  687.  
  688.     or 
  689.  
  690.     Click on the Change icon on the toolbar. 
  691.  
  692.     A Change String dialog box is displayed. 
  693.  
  694.  2. Type the string you want to replace in the String value text box.  For this 
  695.     example, type cpe. 
  696.  
  697.  3. Type the new value for the string in the Change to value text box.  For 
  698.     this example, type PREDITOR/2. 
  699.  
  700.  4. Select the Options button.  The Change String dialog box will enlarge to 
  701.     display options for further defining your search. (This button has been 
  702.     selected in the figure above.) 
  703.  
  704. The buttons across the bottom of the Change String dialog box provide several 
  705. approaches toward changing strings.  Depending on how closely you want to 
  706. supervise the change process, you can click on any of these buttons to initiate 
  707. or cancel the process.  For specific information on when to use these buttons, 
  708. click on the Help button. 
  709.  
  710.  
  711. ΓòÉΓòÉΓòÉ 5.2. Using Regular Expressions ΓòÉΓòÉΓòÉ
  712.  
  713. PREDITOR/2 supports the following metacharacters used with regular expressions: 
  714.  
  715. \c                  Treats c as normal character:  \$ finds $. 
  716.  
  717. ^                   Matches the beginning of the line. 
  718.  
  719. $                   Matches the end of the line. 
  720.  
  721. <                   Matches the beginning of the word. 
  722.  
  723. >                   Matches the end of the word. 
  724.  
  725. .                   Matches any character (except \n). 
  726.  
  727. r*                  Matches zero or more of r. 
  728.  
  729. .*                  Matches any string (except \n). 
  730.  
  731. r+                  Matches one or more of r. 
  732.  
  733. r?                  Matches zero or one of r. 
  734.  
  735. |                   Alternation operator; e.g., is|are finds is or are. 
  736.  
  737. (r)                 Treats r as a group. 
  738.  
  739. {r}                 Treats r as a match group. 
  740.  
  741. [abc]               Finds the character a or b or c. 
  742.  
  743. [^abc]              Finds any character that is NOT a or b or c. 
  744.  
  745. [a-z]               Finds any character in the range a-z inclusive. 
  746.  
  747. Positioning the Cursor 
  748.  
  749. When creating a regular expression, you can specify the location within a 
  750. string where, after a search operation, you want to begin editing. 
  751.  
  752. For example, given the string Dear Dr\.[]+\c:, PREDITOR/2 searches for the text 
  753. Dear Dr. followed by one or more spaces and a single colon and positions the 
  754. cursor before the colon.  If the cursor location were not specified, PREDITOR/2 
  755. would place the cursor at the beginning of the matching text (in this example, 
  756. at the D of the word Dear). 
  757.  
  758.  
  759. ΓòÉΓòÉΓòÉ 5.3. Group and Match Group Searching ΓòÉΓòÉΓòÉ
  760.  
  761. A group is one or more characters treated as a unit.  A match group is a type 
  762. of group that encloses part of a regular expression in braces ({}).  Groups are 
  763. typically used to show association or precedence. 
  764.  
  765. The content of a match group has the same form as a group, except that 
  766. PREDITOR/2 assigns a reference number (1 through 9) to each match group. 
  767. Instead of typing the text, you can use the reference number. 
  768.  
  769. For example, 
  770.  
  771.  1. Type the following value in the Search value text box in the Change String 
  772.     dialog box: 
  773.  
  774.     {Sailboat .*} (is|are) {fun.} 
  775.  
  776.     This expression contains two match groups and one group. PREDITOR/2 assigns 
  777.     reference numbers 1 and 2 to the match groups.  It does not assign a number 
  778.     to the group defined by parentheses. 
  779.  
  780.  2. In the Change to value text box, type : 
  781.  
  782.     \1 can be \2 
  783.  
  784. This replacement text tells PREDITOR/2 to reuse the first string, substitute 
  785. the words can be for is or are, and reuse the second string.  The table below 
  786. shows two sentences that were found, and how they were changed: 
  787.  
  788. Found Text               Changed to... 
  789.  
  790. Sailboat races are fun.  Sailboat races can be fun. 
  791.  
  792. Sailboat racing is fun.  Sailboat racing can be fun. 
  793.  
  794.  
  795. ΓòÉΓòÉΓòÉ 5.4. Additional Search and Change Features ΓòÉΓòÉΓòÉ
  796.  
  797. From the Search menu on the menu bar, you can also perform the following Search 
  798. procedures: 
  799.  
  800. Find next occurrence of string 
  801.  
  802. Locate specific line number 
  803.  
  804. Find routines 
  805.  
  806.  
  807. ΓòÉΓòÉΓòÉ 6. Text Manipulation ΓòÉΓòÉΓòÉ
  808.  
  809. PREDITOR/2's text manipulation features enable you to work quickly with text, 
  810. using either the keyboard or the mouse. 
  811.  
  812. In this Section. . . 
  813.  
  814. Unlimited Undo and Redo 
  815.  
  816. Bookmarks 
  817.  
  818. Editing Text with the Mouse 
  819.  
  820. Editing from the Toolbar 
  821.  
  822. Word Processing 
  823.  
  824.  
  825. ΓòÉΓòÉΓòÉ 6.1. Unlimited Undo and Redo ΓòÉΓòÉΓòÉ
  826.  
  827. When you edit text, there is no limit to how far you can undo and redo actions. 
  828. With PREDITOR/2, this is quickly and easily accomplished through the Undo and 
  829. Redo buttons on the toolbar. 
  830.  
  831.  
  832. ΓòÉΓòÉΓòÉ 6.2. Bookmarks ΓòÉΓòÉΓòÉ
  833.  
  834. Bookmarks represent marked locations within your file where you can position 
  835. your cursor. This feature is especially useful when you are working with large 
  836. files.  By assigning a name to each bookmark, you can quickly return to that 
  837. location by selecting the appropriate bookmark name using the Bookmark list 
  838. option from the Search menu. 
  839.  
  840. Unlimited Availability 
  841.  
  842. While some code editors limit the number of bookmarks you can place, PREDITOR/2 
  843. sets no limits. 
  844.  
  845.  
  846. ΓòÉΓòÉΓòÉ 6.3. Editing Text with the Mouse ΓòÉΓòÉΓòÉ
  847.  
  848. PREDITOR/2 supports both mouse and keyboard use for editing text.  You can use 
  849. the mouse to move the cursor position, make an inactive window active, mark 
  850. text, and create new windows. 
  851.  
  852. Supporting a 3-button mouse 
  853.  
  854. If your mouse has three buttons rather than two, you can add commands for the 
  855. center button.  Refer to the "User Interface" chapter in the PREDITOR/2 
  856. Professional Extension Language Functions and Variables by Category manual. 
  857.  
  858. The table below summarizes the mouse actions you can use when editing text in 
  859. PREDITOR/2. 
  860.  
  861. Mouse Commands for Editing Text 
  862.  
  863. Activity                                Corresponding Mouse Action 
  864.  
  865. Position cursor                         Click in window. 
  866.  
  867. Mark text block                         Click and drag up or down. 
  868.  
  869. Mark column block                       Click and drag while pressing the Ctrl 
  870.                                         key or click with the right mouse 
  871.                                         button and drag. 
  872.  
  873. Mark a single line                      Click and drag across the line while 
  874.                                         pressing the Alt key. 
  875.  
  876. Mark multiple lines                     Click and drag up or down while 
  877.                                         pressing the Alt key. 
  878.  
  879.  
  880. ΓòÉΓòÉΓòÉ 6.4. Editing from the Toolbar ΓòÉΓòÉΓòÉ
  881.  
  882. Not only is text editing easy with PREDITOR/2, but your most basic editing 
  883. commands are available right on the PREDITOR/2 toolbar. 
  884.  
  885.  Cut 
  886.  
  887.  Copy 
  888.  
  889.  Paste 
  890.  
  891.  Undo 
  892.  
  893.  Redo 
  894.  
  895.  
  896. ΓòÉΓòÉΓòÉ 6.5. Word Processing ΓòÉΓòÉΓòÉ
  897.  
  898. The functions described below make word processing with PREDITOR/2 fast and 
  899. easy. 
  900.  
  901. In this Section. . . 
  902.  
  903. Tabs and Margins 
  904.  
  905. File Extensions 
  906.  
  907. Word Processing Mode 
  908.  
  909. Word Wrap 
  910.  
  911. Paragraph Flow 
  912.  
  913.  
  914. ΓòÉΓòÉΓòÉ 6.5.1. Tabs and Margins ΓòÉΓòÉΓòÉ
  915.  
  916. The left and right margins are only used when you are in word processing mode. 
  917. On the Tabs/Margins page of the Buffer settings notebook, set the left and 
  918. right margins at 4 and 70, respectively.  Also, set a tab stop to match your 
  919. left margin, i.e., 4 7. 
  920.  
  921.  
  922. ΓòÉΓòÉΓòÉ 6.5.2. File Extensions ΓòÉΓòÉΓòÉ
  923.  
  924. On the Extensions page of the Editor Settings notebook, specify an extension 
  925. for your text files.  A commonly used text file extension is .TXT.  From the 
  926. selections on the Extensions page, you can specify settings for all of your 
  927. .TXT files. Indicate your word wrap preference by selecting or clearing the 
  928. Word Wrap check box.  You can specify tab stops and margin settings for your 
  929. extension.  If you enter a tab stop or margin setting on this page, it 
  930. overrides the default values you entered on the Tabs/Margins page. Once you've 
  931. made the selections for your extension, whenever you edit a file with the 
  932. specified text extension, you are automatically in word processing mode. 
  933.  
  934.  
  935. ΓòÉΓòÉΓòÉ 6.5.3. Word Processing Mode ΓòÉΓòÉΓòÉ
  936.  
  937. You can switch to word processing mode for a buffer by entering the wp command 
  938. at an editor command prompt.  You can access a command prompt through the 
  939. Command dialog item on the Tools menu. 
  940.  
  941. There are two modes for word processing: 
  942.  
  943. o Mode 1--Does not automatically reflow the paragraph, and will only wrap at 
  944.   the end of a line. 
  945.  
  946. o Mode 2--Automatically reflows the current paragraph as you edit. 
  947.  
  948.   If you do not specify a mode, the default is Mode 1. 
  949.  
  950.  
  951. ΓòÉΓòÉΓòÉ 6.5.4. Word Wrap ΓòÉΓòÉΓòÉ
  952.  
  953. When you are in word processing mode, text lines automatically wrap to the left 
  954. margin when you type past the right margin.  When you add text in the middle of 
  955. a line, the current text is not overwritten, but the paragraph is reflowed (if 
  956. you are in Mode 2).  If you press Enter in the middle of a line, the line is 
  957. split at the cursor position and the text to the right of the cursor is moved 
  958. to the first column of the next line. You must then press the Tab key to move 
  959. to the left margin. Note:  Be sure to set a tab stop at your left margin. 
  960.  
  961. Note:  Any text to the left of the left margin will be automatically copied at 
  962. the beginning of the next line, when a line is automatically wrapped. 
  963. Therefore, be sure you do not enter text before the left margin. 
  964.  
  965.  
  966. ΓòÉΓòÉΓòÉ 6.5.5. Paragraph Flow ΓòÉΓòÉΓòÉ
  967.  
  968. Paragraphs are delimited by empty lines. The wrap_paragraph command reflows a 
  969. paragraph at the margins.  This is useful when editing a text file that has 
  970. different margins than those you have specified. 
  971.  
  972. Before you execute wrap_paragraph, you must manually move all of the text to 
  973. the left margin.  This is easily done in Brief emulation by selecting all of 
  974. the text and pressing the Tab key. 
  975.  
  976.  
  977. ΓòÉΓòÉΓòÉ 6.6. Additional Text Editing Features ΓòÉΓòÉΓòÉ
  978.  
  979. Click on the appropriate item from the Edit menu to perform these additional 
  980. text editing features: 
  981.  
  982. o Change text case 
  983.  
  984.    - Uppercase 
  985.    - Lowercase 
  986.    - Reverse 
  987.  
  988. o Block indenting/outdenting 
  989.  
  990.  
  991. ΓòÉΓòÉΓòÉ 7. File Manipulation ΓòÉΓòÉΓòÉ
  992.  
  993. One of PREDITOR/2's strengths is its ability to handle large files while you 
  994. work with and manipulate these files.  Because PREDITOR/2 knows no limits, you 
  995. can work with files of any size, in as many buffers and windows as you like. 
  996. You can also compare the differences between two versions of a file. PREDITOR/2 
  997. makes manipulating large files a manageable task. 
  998.  
  999. In this Section. . . 
  1000.  
  1001. Using Multiple Document Interface (MDI) Mode 
  1002.  
  1003. Buffers and Windows 
  1004.  
  1005. Comparing Versions 
  1006.  
  1007.  
  1008. ΓòÉΓòÉΓòÉ 7.1. Using Multiple Document Interface (MDI) Mode ΓòÉΓòÉΓòÉ
  1009.  
  1010. PREDITOR/2 enables you to display an unlimited number of windows at one time. 
  1011. This function is known as Multiple Document Interface (MDI) mode. MDI mode 
  1012. enables you to view multiple files at the same time, or view the same files in 
  1013. multiple places.  When MDI mode is enabled, all currently opened windows can be 
  1014. displayed.  If MDI mode is disabled, PREDITOR/2 displays only one window at a 
  1015. time. 
  1016.  
  1017. To enable MDI mode, 
  1018.  
  1019.  1. Click on the Windows menu on the menu bar. If the MDI mode is already 
  1020.     enabled, a check mark symbol is shown next to the MDI mode option.  You can 
  1021.     close the menu and continue. 
  1022.  
  1023.  2. If the MDI mode option is disabled, click on the MDI mode option. A check 
  1024.     mark symbol appears next to the MDI mode selection, indicating that MDI 
  1025.     mode is enabled. 
  1026.  
  1027.  
  1028. Disabling MDI Mode 
  1029.  
  1030. To disable this option, select it from the Windows menu. The checkmark is 
  1031. removed, indicating that the option is disabled. 
  1032.  
  1033.  
  1034. ΓòÉΓòÉΓòÉ 7.2. Buffers and Windows ΓòÉΓòÉΓòÉ
  1035.  
  1036. In PREDITOR/2, you open both buffers and windows to work with files.  Although 
  1037. the two work together, buffers and windows have distinct uses.  The following 
  1038. sections define buffers and windows. 
  1039.  
  1040. In this Section. . . 
  1041.  
  1042. Buffers 
  1043.  
  1044. Windows 
  1045.  
  1046. Creating Windows 
  1047.  
  1048.  
  1049. ΓòÉΓòÉΓòÉ 7.2.1. Buffers ΓòÉΓòÉΓòÉ
  1050.  
  1051. A buffer is your copy of a file that you are editing.  A buffer is a temporary 
  1052. holding place.  You can edit a buffer, but the changes you make are not 
  1053. included in its corresponding file until you save the file. 
  1054.  
  1055. Unlike other editors, a buffer in PREDITOR/2 is not associated with a specific 
  1056. window.  You can display any buffer in any window at any time.  In MDI mode, 
  1057. you can display the same buffer in multiple windows. 
  1058.  
  1059. To create a new buffer, 
  1060.  
  1061.  1. Click on the File menu on the menu bar. 
  1062.  
  1063.  2. Click on the New menu item. 
  1064.  
  1065. or 
  1066.  
  1067.  1. Click on the New Buffer icon on the toolbar. 
  1068.  
  1069. You can use the options in the Buffers menu to move between and open buffers. 
  1070.  
  1071. To switch to an existing buffer, 
  1072.  
  1073.  1. Click on the Buffers menu on the menu bar. 
  1074.  
  1075.  2. Click on the menu option you prefer. 
  1076.  
  1077.  3. Follow the prompts that apply to the menu option you selected. 
  1078.  
  1079.  
  1080. ΓòÉΓòÉΓòÉ 7.2.2. Windows ΓòÉΓòÉΓòÉ
  1081.  
  1082. A window is an area of the screen through which you can view the contents of a 
  1083. buffer.  A window may take up the entire display or only a part of it, or may 
  1084. be as small as an icon. 
  1085.  
  1086. You can open multiple windows while using PREDITOR/2 in MDI mode.  You can 
  1087. change the size and location of a window, overlap windows or position them 
  1088. side-by-side. See the Windows menu on the menu bar for windows options.  For 
  1089. example, the windows below are tiled. 
  1090.  
  1091. Since a window is not associated with a specific buffer, you can use the buffer 
  1092. commands to change the buffer that is displayed in a window, or delete the 
  1093. window without affecting the buffer. 
  1094.  
  1095.  
  1096. ΓòÉΓòÉΓòÉ 7.2.3. Creating Windows ΓòÉΓòÉΓòÉ
  1097.  
  1098. If you are in MDI mode (see "File Manipulation") you can use the mouse to 
  1099. create a window. 
  1100.  
  1101. In the main PREDITOR/2 window, 
  1102.  
  1103.  1. Position the mouse cursor where you want the lower left corner of the 
  1104.     window to rest. 
  1105.  
  1106.  2. Hold down the left mouse button and drag diagonally away from this corner. 
  1107.  
  1108.  3. When you reach the location for the opposite window corner, release the 
  1109.     mouse button. 
  1110.  
  1111.     There is no limit to the number of windows you can create. 
  1112.  
  1113.  
  1114. ΓòÉΓòÉΓòÉ 7.3. Comparing Versions ΓòÉΓòÉΓòÉ
  1115.  
  1116. It is often handy to be able to compare two versions of a file and review the 
  1117. differences between the versions.  PREDITOR/2 enables you to compare files with 
  1118. the Vdiff tool. 
  1119.  
  1120. To compare files, 
  1121.  
  1122.  1. Click on the Tools menu on the menu bar. 
  1123.  
  1124.  2. Click on the VCS menu item.  Another menu opens. 
  1125.  
  1126.  3. Click on the Vdiff menu item. 
  1127.  
  1128.     The PVCS VDIFF dialog box is displayed. 
  1129.  
  1130.  4. Enter the name of the source file, and if necessary a revision/version 
  1131.     number in the Reference text boxes. 
  1132.  
  1133.  5. Enter the name of the target file and, if necessary, a revision/version 
  1134.     number in the Target text boxes. 
  1135.  
  1136.  6. Select either the Comparison or Vdiff output radio button (in the View 
  1137.     group box) to specify how you want to view the compared results. 
  1138.     Comparison will give you an outline view of the results, with changes 
  1139.     highlighted.  Vdiff output will display the contents of the Vdiff buffer 
  1140.     containing the two files, with plus (+) and minus (-) signs indicating 
  1141.     additions and subtractions. 
  1142.  
  1143.  7. If you choose to view the results in the Comparison mode, use the radio 
  1144.     buttons in the Orientation group box to specify how the information will be 
  1145.     displayed. 
  1146.  
  1147.  8. Select or clear the Ignore whitespace check box.  If you select this check 
  1148.     box, whitespace from indentation and other space differences is considered 
  1149.     as part of the line.  This space can cause unnecessary error notations. 
  1150.     Clear this box to ignore whitespace. 
  1151.  
  1152.  9. Click on the OK button.  PREDITOR/2 will now present to you the version 
  1153.     differences in your specified file and versions. 
  1154.  
  1155.  
  1156. ΓòÉΓòÉΓòÉ 8. Programming Aids ΓòÉΓòÉΓòÉ
  1157.  
  1158. PREDITOR/2 is packed with extensive features to make programming easy and 
  1159. flexible. 
  1160.  
  1161. In this Section. . . 
  1162.  
  1163. Unlimited Compiler Support 
  1164.  
  1165. Enabling Template Expansion 
  1166.  
  1167. Integrating with WorkFrame/2 
  1168.  
  1169. Additional Programming Aids 
  1170.  
  1171.  
  1172. ΓòÉΓòÉΓòÉ 8.1. Unlimited Compiler Support ΓòÉΓòÉΓòÉ
  1173.  
  1174. Not only does PREDITOR/2 provide many preset compilers, but it can support any 
  1175. compiler you wish to use. 
  1176.  
  1177. Add your own compiler in the Editor settings notebook, on the Extensions and 
  1178. Compilers page. 
  1179.  
  1180.  
  1181. ΓòÉΓòÉΓòÉ 8.2. Enabling Template Expansion ΓòÉΓòÉΓòÉ
  1182.  
  1183. Templates are handy programming aids. From an abbreviated keyword, you can 
  1184. expand a template that will provide the programming construct, or fields, to 
  1185. follow that keyword. 
  1186.  
  1187. By default, PREDITOR/2's templates are disabled.  To use a template, you must 
  1188. enable template expansion. 
  1189.  
  1190. To enable template expansion, 
  1191.  
  1192.  1. Select the Tools menu from the menu bar. 
  1193.  
  1194.  2. Click on the Command dialog menu item. 
  1195.  
  1196.  3. Type ec in the text box and click on the OK button. 
  1197.  
  1198.     The state of template expansion is shown on the status bar.  When template 
  1199.     expansion is enabled, you can expand a template by pressing the Space Bar 
  1200.     after a keyword.  To go to the next field, press the Enter key. 
  1201.  
  1202. The command ec toggles a template on and off. Therefore, you can disable 
  1203. template expansion by repeating the steps listed above. 
  1204.  
  1205.  
  1206. ΓòÉΓòÉΓòÉ 8.2.1. Specifying a Template ΓòÉΓòÉΓòÉ
  1207.  
  1208. The editor recognizes the extension of your file name and opens its 
  1209. corresponding template.  For example, if you are editing a file named test.c, a 
  1210. C template is expanded when you enable template expansion. 
  1211.  
  1212. PREDITOR/2 supports automatic expansion for the following templates, as well as 
  1213. any others you choose to add: 
  1214.  
  1215. C/C++ 
  1216.  
  1217. COBOL 
  1218.  
  1219. REXX 
  1220.  
  1221. PASCAL 
  1222.  
  1223. AWK 
  1224.  
  1225. Clipper 50 
  1226.  
  1227. Clipper 87 
  1228.  
  1229. dBase 
  1230.  
  1231. FORCE 
  1232.  
  1233.  
  1234. ΓòÉΓòÉΓòÉ 8.3. Integrating with WorkFrame/2 ΓòÉΓòÉΓòÉ
  1235.  
  1236. PREDITOR/2 integrates with IBM's WorkFrame/2.  This integration enables you to 
  1237. specify the editor in which source files are displayed.  By specifying C.EXE -W 
  1238. as the editor, PREDITOR/2 will be the editor used when accessing files or 
  1239. locating errors from WorkFrame/2. 
  1240.  
  1241. Benefits 
  1242.  
  1243. The benefits of integrating with WorkFrame/2 are: 
  1244.  
  1245.  1. Error Sources Displayed 
  1246.  
  1247.     If your WorkFrame/2 compile generates error messages, you can double-click 
  1248.     on an error message to display the corresponding source code in PREDITOR/2. 
  1249.     You can then modify your source code to fix the error (or warning), and 
  1250.     restart the compile process.  This saves you the trouble of manually 
  1251.     loading the editor, choosing the correct file, and locating the appropriate 
  1252.     line number. 
  1253.  
  1254.  2. Single Editor Loaded 
  1255.  
  1256.     Instead of loading a new copy of the editor into memory each time you need 
  1257.     to view source code, the PREDITOR/2 stub (C.EXE) quickly brings the already 
  1258.     running editor to the foreground, saving load time and memory. 
  1259.  
  1260.  
  1261. ΓòÉΓòÉΓòÉ 8.4. Additional Programming Aids ΓòÉΓòÉΓòÉ
  1262.  
  1263. Integration 
  1264.  
  1265. OS/2 Workplace Shell drag and drop 
  1266.  
  1267. Preset Compilers 
  1268.  
  1269. IBM CSet/Cset++ 
  1270.  
  1271. Borland C/C++ 
  1272.  
  1273. Microsoft C/C++ 
  1274.  
  1275. Advantage ADA 
  1276.  
  1277. Clipper 5.0 
  1278.  
  1279. Clipper Summer '87 
  1280.  
  1281. COBOL 
  1282.  
  1283. FORCE 
  1284.  
  1285. dBase 
  1286.  
  1287. INTERSOLV PolyMake 
  1288.  
  1289. INTERSOLV PVCS Builder 
  1290.  
  1291. Lahey FORTRAN 77 
  1292.  
  1293. Microsoft Masm 
  1294.  
  1295. Microsoft Quick BASIC 
  1296.  
  1297. NMake 
  1298.  
  1299. PEL 
  1300.  
  1301. Turbo C, C++ and Pascal 
  1302.  
  1303. Zortech C/C++ 
  1304.  
  1305. Tags Facility 
  1306.  
  1307. Generate .tag files 
  1308.  
  1309. Tags locate 
  1310.  
  1311. CTags make 
  1312.  
  1313. Peltags make 
  1314.  
  1315.  
  1316. ΓòÉΓòÉΓòÉ 9. Workgroup Support ΓòÉΓòÉΓòÉ
  1317.  
  1318. Version Control System 
  1319.  
  1320. Before you can select any of the options available in the system, you must 
  1321. enable the version control system (VCS).  To enable the VCS, select the Enable 
  1322. VCS check box on the VCS page of the Editor settings notebook. 
  1323.  
  1324. Get 
  1325.  
  1326. Selecting Get enables you to retrieve a file from the version control system 
  1327. and at the same time lock the file so that it cannot be released to another 
  1328. user.  When you select Get, a dialog box displays the Get command.  This 
  1329. command reflects the default value from the VCS page of the Editor settings 
  1330. notebook. 
  1331.  
  1332. Put 
  1333.  
  1334. Selecting Put releases the lock on the file and returns it to the version 
  1335. control system. When you select Put, a dialog box displays the Put command. 
  1336. This command reflects the default value from the VCS page of the Editor 
  1337. settings notebook. 
  1338.  
  1339.  
  1340. ΓòÉΓòÉΓòÉ 10. Documentation ΓòÉΓòÉΓòÉ
  1341.  
  1342. PREDITOR/2 2.0 comes with complete documentation for both the editor and the 
  1343. Professional Extension Language (PEL).: 
  1344.  
  1345. In this Section. . . 
  1346.  
  1347. Product Manuals 
  1348.  
  1349. Online Help 
  1350.  
  1351.  
  1352. ΓòÉΓòÉΓòÉ 10.1. Product Manuals ΓòÉΓòÉΓòÉ
  1353.  
  1354. PREDITOR/2 2.0 User's Guide 
  1355.  
  1356. This document covers how to install PREDITOR/2 on your workstation, configuring 
  1357. and customizing the editor, the user interface and basic functions, and using 
  1358. the Professional Extension Language (PEL) to further customize PREDITOR/2 2.0. 
  1359.  
  1360. PREDITOR/2 2.0 Professional Extension Language Functions and Variables by 
  1361. Category 
  1362.  
  1363. Here you will find the most commonly used PEL functions and variables arranged 
  1364. by category.  Each category is described and followed by the related commands 
  1365. and a summary of their purposes.  An alphabetical listing of functions and 
  1366. variables also helps you to find the category pertaining to a specific function 
  1367. or variable. 
  1368.  
  1369. PREDITOR/2 2.0 Professional Extension Language Function and Variable Reference 
  1370.  
  1371. For detailed information on all PEL functions and variables, refer to this 
  1372. manual.  Here you will find every PEL command and its related purpose, syntax, 
  1373. type, description, value returned, and examples. 
  1374.  
  1375.  
  1376. ΓòÉΓòÉΓòÉ 10.2. Online Help ΓòÉΓòÉΓòÉ
  1377.  
  1378. PREDITOR/2's online help provides extensive information on: 
  1379.  
  1380. o Functions and variables 
  1381.  
  1382. o Menu items 
  1383.  
  1384. o Settings notebook options 
  1385.  
  1386. o General product information 
  1387.  
  1388. o Technical support information. 
  1389.  
  1390. The Help menu puts online and context-sensitive help at your fingertips.  In 
  1391. all standard keymaps and most emulation packages, the online help facility is 
  1392. available by pressing F1 on your keyboard. You can access Help from any menu by 
  1393. pressing F1 and from some dialog boxes by selecting the Help push button. 
  1394.  
  1395. You can also access any other product's online help through the NDX files. 
  1396.  
  1397.  
  1398. ΓòÉΓòÉΓòÉ 11. Additional Product Features ΓòÉΓòÉΓòÉ
  1399.  
  1400. The many different ways you can work with PREDITOR/2 make it a comfortable 
  1401. product to work with on a daily basis.  Beyond the powerful features you've 
  1402. seen so far, here are a few more that make this editor satisfying to our 
  1403. customers. 
  1404.  
  1405. In this Section. . . 
  1406.  
  1407. Status Bar Prompts 
  1408.  
  1409. File and Command Name Completion 
  1410.  
  1411. History Lists 
  1412.  
  1413. Additional Features 
  1414.  
  1415.  
  1416. ΓòÉΓòÉΓòÉ 11.1. Status Bar Prompts ΓòÉΓòÉΓòÉ
  1417.  
  1418. The status bar displays information regarding your current PREDITOR/2 session. 
  1419. The status bar is located at the bottom of the main PREDITOR/2 window. 
  1420.  
  1421. You can customize the status bar to provide command line prompts and other 
  1422. information on the Status Bar page of the Editor settings notebook.  If you 
  1423. select the Prompts option on this page, you can enter commands from the status 
  1424. bar, in all emulations other than CUA. 
  1425.  
  1426. To activate a command prompt from the status bar in the Brief emulation, 
  1427.  
  1428.  1. Type the keystroke command [Alt][E] from your keyboard.  A command prompt 
  1429.     appears on your status bar. 
  1430.  
  1431.  2. Type a command at the prompt and press the Enter key. 
  1432.  
  1433.  
  1434. ΓòÉΓòÉΓòÉ 11.2. File and Command Name Completion ΓòÉΓòÉΓòÉ
  1435.  
  1436. Suppose you can't remember the full name of a file or command.  Or suppose the 
  1437. name is longer than you wish to type.  PREDITOR/2 completes file and command 
  1438. names to help you work more quickly. 
  1439.  
  1440. To have PREDITOR/2 complete a file or command name, 
  1441.  
  1442.  1. Type the beginning of the name at the file or command prompt. 
  1443.  
  1444.  2. Press the Tab key on your keyboard.  The correct name appears at the 
  1445.     prompt.  If there is more than one name matching your request, a list of 
  1446.     possible matches is displayed in a dialog box on your screen.  Double-click 
  1447.     on the appropriate match or press the Enter key if there is only one match. 
  1448.  
  1449.  
  1450. ΓòÉΓòÉΓòÉ 11.3. History Lists ΓòÉΓòÉΓòÉ
  1451.  
  1452. You can also view a history list by pressing the up arrow or Page Up key on 
  1453. your keyboard. 
  1454.  
  1455.  
  1456. ΓòÉΓòÉΓòÉ 11.4. Additional Features ΓòÉΓòÉΓòÉ
  1457.  
  1458. When you program with PREDITOR/2, you can also: 
  1459.  
  1460. Track errors after compiling 
  1461.  
  1462. Perform background execution of your language compilers 
  1463.  
  1464.  
  1465. ΓòÉΓòÉΓòÉ 12. Technical Support ΓòÉΓòÉΓòÉ
  1466.  
  1467. In this Section. . . 
  1468.  
  1469. Product Support Hotline 
  1470.  
  1471. CompuServe 
  1472.  
  1473. Corporate Buyers 
  1474.  
  1475. Contact for More Information 
  1476.  
  1477.  
  1478. ΓòÉΓòÉΓòÉ 12.1. Product Support Hotline ΓòÉΓòÉΓòÉ
  1479.  
  1480. Customers will receive 90 days of free hotline support from Compuware's 24-hour 
  1481. Product Support Hotline.  Contact the hotline by calling 1-800-538-7822. 
  1482.  
  1483.  
  1484. ΓòÉΓòÉΓòÉ 12.2. CompuServe ΓòÉΓòÉΓòÉ
  1485.  
  1486. For the fastest response to your question, access the Compuware section of the 
  1487. CompuServe OS/2 Vendor Forum, OS2AVEN.  Compuware provides unlimited support 
  1488. through CompuServe. 
  1489.  
  1490.  
  1491. ΓòÉΓòÉΓòÉ 12.3. Corporate Buyers ΓòÉΓòÉΓòÉ
  1492.  
  1493. Compuware will also negotiate custom support plans for corporate buyers. 
  1494.  
  1495.  
  1496. ΓòÉΓòÉΓòÉ 12.4. Contact for More Information ΓòÉΓòÉΓòÉ
  1497.  
  1498. Frank Slootman 
  1499. Product Manager 
  1500. Compuware Corporation 
  1501. 31440 Northwestern Highway Farmington Hills, MI 48334 
  1502.  
  1503. Phone:  (810) 737-7596 
  1504. Fax:  (810) 737-7108 
  1505.  
  1506.  
  1507. ΓòÉΓòÉΓòÉ 13. Pricing and Availability ΓòÉΓòÉΓòÉ
  1508.  
  1509. PREDITOR/2 has a manufacturer's suggested retail price of $249 but is available 
  1510. at an introductory price of $149 directly from Compuware (800-535-8707) or 
  1511. Indelible Blue (919-878-9700) through December 31, 1994.