Finding and Replacing Text
With the find and replace commands of the text editor, you can:
With the Find command, you can search the active window for the
following types of text strings:
- Match whole word only
Matches all occurrences of a text string not preceded or followed
by an alphanumeric, the underscore (_) or the dollar ($) character.
- Match case
Searches for text that matches the capitalization of the text string.
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
- 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.
- From the Edit menu, choose Find.
The Find dialog box appears.
- 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.
- Select any of the Find options.
- 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.
- To continue your search, use the Find Next or Find Previous
toolbar buttons.
To begin a find without the Find dialog box
- Type or select a search string in the Edit toolbar Find box.
- Press ENTER.
Note If there is no match, the text editor beeps and displays
a warning in the status bar.
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:
- Whole Word Match
Matches all occurrences of a text string not preceded or followed by an
alphanumeric character or an underscore (_).
- Case Match
Searches for text that matches the capitalization of the text string.
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.
With the Replace command, you can search the active window for the
following types of text strings, and replace each with another
text string:
- Match whole word only
Matches all occurrences of a text string not preceded or followed
by an alphanumeric, the underscore (_) or the dollar ($) character.
- Match case
Searches for text that matches the capitalization of the text string.
To replace text
- 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.
- From the Edit menu, choose Replace.
The Replace dialog box appears.
- In the Find What text box, type the search text.
- 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.
- Select any of the remaining Find options.
- To begin the search, choose the Find Next button.
The Replace command selects the first matching text string.
- 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