Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Integrating a Text Editor with WebKing

Options
LegacyForum
LegacyForum Posts: 1,664 ✭✭
Integrating a Text Editor with WebKing

The selected text editor is used to edit any CSS, HTML, JavaScript, or ASCII file (unless you specify a different editor for one of these types of files). To integrate a text editor:

1. Open the Preferences panel by clicking the Customize Preferences toolbar button or choosing File> Customize Preferences.

2. Open the MIME Types tab.

3. In the Text Editor Executable field (at the bottom of the panel), enter the path to the editor executable.

4. (Optional) In the Arguments field, enter any command-line arguments that you want to pass to
the program.

? An argument is required if you want this tool to operate on a selected item (file, Project tree item, Path tree item, and so on) or if you want to use this tool as a boolean filter. Several available % arguments are discussed below. If you do not specify any % arguments, the external tool will start when it is invoked, but it will not operate on any selected files, browser items, etc.

? %F: This argument passes the filename and path of the selected item. It allows the tool to operate on the selected item. If you invoke a tool using this argument, the item for which it was invoked will be ?ghosted? and assigned a temporary filename. You can avoid this ghosting by using the %u argument, if applicable. %F is the most commonly used argument.

? %f: This argument passes the filename, but not the path, of the selected item.

? %u: This argument passes the URL of the selected item. It works on simple URLs (URLs for pages without form submissions) as long as the associated tool can work with URLs.

? %l: This argument passes any relevant line number information.