Specifying an Editor

Related Topics

 

1.    Open the Preferences dialog box.

2.    Select the Source Code tab.

3.    Click one of the following:

 

Use Microsoft Visual Studio editor

Opens the Visual Studio editor to display source code.

Use Purify source viewer

Opens Purify's own Purify viewer window to display source code.

Use the following editor

Opens the editor you specify to display source code.

Notes:

§      If you are using Purify integrated in Visual Studio, Purify always uses the Visual Studio editor to display source code.

§      If you want to use the Visual Studio editor, type the following in Use the following editor: msdev.exe %1. (Note: There is no command-line argument to drive this to the exact line number.)

§      When you type a command in Use the following editor, the command line must include the %1 directive, which is replaced with the source file name. The optional %2 directive, if present, is replaced with the line number. You can use these directives in any order, for example:

 

Visual SlickEdit

vslick\vs.exe %1 -#%2

CodeWright

cw32.exe %1 -g%2

NT Emacs

emacs.exe +%2 "%1"

§      If you do not specify an editor, Purify launches the default editor for your code. You can set your default editor by using the Associate command from the File Manager or selecting View > Options in the Explorer. If you do not associate an editor, but you selected Use the following editor, Purify launches Notepad on the source file. (Note: There is no command-line argument to drive Notepad to the exact line number.)

§      If the editor you want to use is a 16-bit application, type the following in Use the following editor: cmd /c "editorname directives", including quotation marks. For example, type: cmd /c "C:\Dos\Ed.exe %1 %2".

§      If you select Use Purify source viewer, Purify uses its own Purify viewer window to display source code.

(C) Copyright IBM Corporation 1992, 2010.