Use the following editor, Source Code tab, Preferences Dialog Box
Select whether to use your own editor to view source code. Type the name of the editor you want Purify to use when you double-click source code in an Error View, select an editor from the list, or click to search for an 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 your default editor for Visual C++ code. You can set your default editor by 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.)
Notes:
§ If you want to use the Visual Studio 2008 editor, type the following: devenv.exe %1. (Note: There is no command-line argument to drive this 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".
(C) Copyright IBM Corporation 1992, 2010.