Finding and Replacing Text

With the find and replace commands of the text editor, you can:


Finding Text in a Single File

With the Find command, you can search the active window for the following types of text strings: Since the Find dialog box is a non-modal dialog, you can change between the Find dialog box and the document window as you like. You can even open a Replace dialog box and use them intermittendly. To close the Find dialog, select Close or press the ESC key.

To find a text string

  1. Move the insertion point to where you want to begin your search. The editor uses the location of the insertion point to select a default search string.
  2. From the Edit menu, choose Find. The Find dialog box appears.
  3. In the Find What text box, type the search text.
    - or -
    You can also use the drop-down list to select from a list of up to 16 previous search strings.
  4. Select any of the Find options.
  5. To begin your search, choose Find Next. The Find dialog box will stay open when the search begins. Since the Find dialog box is not a modal dialog, you can change between the Find dialog box and the document window as you like. To close the Find dialog box, select Close or press the ESC key. To repeat a find operation, you can use the Find Next from the Find dialog box, the shortcut keys or toolbar buttons.
  6. To continue your search, use the Find Next or Find Previous toolbar buttons.

To begin a find without the Find dialog box

  1. Type or select a search string in the Edit toolbar Find box.
  2. Press ENTER.

Note If there is no match, the text editor beeps and displays a warning in the status bar.


Finding Text in Multiple Files

Please note: Finding text in multiple files is not supported with the current release. The functionality described below will be implemented in a future release.

With the Find in Files command on the File menu, you can search multiple text files for the following types of text strings:

To find a text string in multiple source files

When you jump to a found string location specified in the Output window, the corresponding source file is loaded if it is not already open in the editor.

Note The Output window is a virtual window that is maintained even when it is not displayed. You can display the output from your last multiple-file search done during your current session by choosing the Output command from the View menu and by choosing the Find In Files tab in the Output window.


Replacing Text

With the Replace command, you can search the active window for the following types of text strings, and replace each with another text string:

To replace text

  1. Move the insertion point to where you want to begin your search. The editor uses the location of the insertion point to select a default search string.
  2. From the Edit menu, choose Replace. The Replace dialog box appears.
  3. In the Find What text box, type the search text.
  4. In the Replace With text box, type the replacement text. Select the menu button to the right of the combo box to display a list of replacement options.
  5. Select any of the remaining Find options.
  6. To begin the search, choose the Find Next button. The Replace command selects the first matching text string.
  7. Replace the current selection by choosing the Replace button.
    - or -
    Replace all identical strings by choosing the Replace All button.
    - or -
    Skip the current selection and find the next selection by choosing the Find Next button.
Since the Replace dialog box is a non-modal dialog, you can change between the Replace dialog box and the document window as you like. You can even open a Find dialog box and use them intermittendly. To close the Replace dialog, select Close or press the ESC key.


© Copyright 1997 Hewlett-Packard GmbH. All rights reserved.
Revision: 98/02/18