13. Writing Scripts and Procedures : Script Editor : How You Can Edit Text with the Script Editor : Find and Replace Text
 
Share this page                  
Find and Replace Text
You can find and replace text in the Script Editor.
To find and replace specific text in a script
1. Click Find, Find in the Script Editor.
The Search/Replace dialog appears.
2. Enter the search string (the text you want to search for) in the Find String entry field.
3. Click Ignore Case to specify whether text in the script must match the case of the search string (for example, whether “declare” in the script matches the search string “Declare”).
4. Enter a replacement string (text with which to replace the search string), if desired.
The replacement string is always inserted into the text exactly as you entered it.
5. Click one of the following buttons on the dialog:
Replace All
Replaces every occurrence of the search string in the script automatically
Find
Finds the first occurrence of the search string
6. If you selected Find and the search string is found, click one of the following commands on the Find menu:
Find Next
Finds the next occurrence of the search string
Find Previous
Finds the previous occurrence of the search string
Replace
Replaces the current occurrence of the search string with the replacement string
Replace and Find
Replaces the current occurrence of the search string and then finds the next occurrence
To find specific lines and change their text attributes
1. Click Find, Go to Line Number in the Script Editor.
The Go to Line Number dialog appears.
2. Enter the line number and click OK.
The line number you entered is highlighted.
3. Click Font, Bold to specify boldface or regular type.
Note:  Using the Font menu commands affects the Script Editor only. The type and window of the system editor are not affected.
4. Click one of the size toggles on the Font menu to specify the type size.
Note:  When you change the size of the type, the Script Editor window is resized to fit the current text.