|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Using Search and Replace
|
|
|
|
Studio provides two levels of search and replace to help you maintain your Web pages -- basic and extended.
|
|
|
|
Running a basic search |
|
|
|
To run a basic search in the current document, choose Search > Find to locate a specific string in the current document or Search > Replace to replace all matches.
- The basic find command (CTRL + F) searches only in the current document.
- Clicking the Find Next button in the Find dialog box sequentially highlights each match in the current document.
- When the search dialog box is closed, you can choose Search > Find Next (F3) to resume the last search, starting where the cursor is positioned.
- Use the Search > Replace command (CTRL+ R) to replace matches selectively or to replace all matches.
|
|
|
|
Using the extended search and replace feature |
|
|
|
For more complex search and replace operations across documents, use the Search > Extended Find command. Or, you can use the Search > Extended Replace command to specify the replacement text as well as the string you're looking for.
The extended search and replace commands offer a number of options to refine your search:
- You can run the Extended Search (CTRL + SHIFT + F) and Extended Replace (CTRL + SHIFT + R) features on the current document, all open documents, or entire folders, including sub-folders.
- When searching through folders, you can restrict searches by selecting file extensions from the File Types drop down list. You can also backup files before making replacements at the folder level.
- Select the Match Case option for case-sensitive searches.
- Select Regular Expressions to enable parsing of regular expression entries. See the section on Searching with Regular Expressions for details on using regular expressions in Studio.
- Select the Skip Tags While Searching option to search the page content only, excluding the tags themselves.
When you choose Replace operations, you are prompted to save all untitled open documents.
The Results pane displays a list of locations where the matched string was replaced. Double-click on a match in the list to highlight it in the document. Right-click in the Results pane to clear the pane or close it.
|
|
|
|
Note
|
|
|
The Extended Replace command skips read-only files.
|
|
|
|
Replacing special characters |
|
|
|
Use the Search > Replace Special Characters command to either replace extended characters with their HTML equivalents, or replace HTML tags with the equivalent extended characters. This command works only in the current document.
|
|
|
|
Replacing double-spaced lines |
|
|
|
Because of the way different operating systems treat carriage returns, text files saved on UNIX or Macintosh systems may become double-spaced when opened in Studio. Use the Search > Replace Double Spacing with Single Spacing command to collapse double-spaced lines to single-spaced lines.
|
|
|
  
|
|
|
AllaireDoc@allaire.com
Copyright © 1998, Allaire Corporation. All rights reserved.
|