HomeSite provides basic and extended search capabilities. These enable you to find and replace alphanumeric strings-including regular expressions-across folders and projects, filter the files to search by file type, select how tags are processed by the search engine, automatically replace special and extended characters with their HTML equivalents, make a double-spaced document single-spaced, select documents to edit or browse from the search results, and more. This section describes each search capability.
By selecting text in a document and invoking a search, HomeSite automatically inserts the selected text into the Find what text box.
In a basic search or replace, if the selected text exceeds 100 characters, no text is inserted into the Find what box, and HomeSite searches the selected text instead of the entire document. If you want to only replace text within a selection, you can select the Selection option in the Relace dialog box.
Optionally, you can configure HomeSite so that, when you do not select any search text, it selects the word nearest to the cursor position and inserts this word into the Find what box.
This enables the following behaviors in both basic and extended searches:
You can reuse search strings for basic and extended searches, but the method for saving the search text differs.
You can perform a basic search or replace operation on the active document, even if it is an untitled, unsaved document.
The last 10 items are saved in the Find what drop-down list. You can select from this list. You can also select text in the Editor to appear in the Find what box. For details, see "Selecting search text".
To set more advanced options, perform an extended search on the current document. For instructions, see "Performing an extended search".
The last 10 items are saved in the Find what and Replace what drop-down lists. You can select from these lists. You can also select text in the Editor to appear in the Find what box. For details, see "Selecting search text".
To set more advanced options, perform an extended replace on the current document. For instructions, see "Performing an extended search".
You can use the Extended Find and Extended Replace commands to perform more complex search operations across multiple documents.
Extended search and extended replace operations include untitled, unsaved documents. They are listed in the Results window by their tab label in the Editor (Untitled1, Untitled2, and so on).
The rest of this section provides instructions for performing extended search and extended search and replace operations.
This section contains instructions for performing extended searches in the current document, all open documents, in a folder, or in a project.
To re-use a previously saved search string, see "Saving search text".
To search documents in the folder's subdirectories, select Include subfolders.
If you want to limit your search to files of certain types, select a filter from the File Types drop-down box or type your own; for example, *.html;*.htm;*.txt.
If you want to limit your search to files of certain types, select a filter from the File Types drop-down box or type your own; for example, *.html;*.htm;*.txt.
For information on the specific syntax to use for regular expressions in HomeSite, see "Using Regular Expressions".
This option is not available when Regular expressions is selected.
The Results window displays a list of documents matching the search string.
This section contains instructions for performing an extended search and replace operation in the current document, all open documents, in a folder, or in a project.
|
Caution An extended replace operation cannot be undone. For best results, select the Make backups option. Also, an extended replace operation skips all read-only files. |
To re-use a previously saved search string in the Find what box, see "Saving search text".
To replace text in documents that are in the folder's subdirectories, select Include subfolders.
If you want to limit your search and replace operation to files of certain types, select a filter from the File Types drop-down box or type your own; for example, *.html;*.htm;*.txt.
If you want to limit your search and replace operation to files of certain types, select a filter from the File Types drop-down box or type your own; for example, *.html;*.htm;*.txt.
For information on the specific syntax to use for regular expressions in HomeSite, see "Using Regular Expressions".
This option is not available when Regular expressions is selected.
If you select this option, you must specify one of these backup locations:
Backup directory Backs up in the \AutoBackup folder in the program root; for example, C:\Program Files\Macromedia\HomeSite 5.0 \AutoBackup.
Original directory Backs up in the current directory. You can differentiate these files from your regular files by their name, since backed up files use the following naming convention: filename + an incremented 3 digit number + the file extension; for example, myfile000.htm.
For information about how HomeSite determines the current directory with two Files tabs, see "About the Files Tabs".
The Results window displays a list of documents in which text was replaced.
After an extended search, the Results window displays a list of documents in which the search string was found and/or replaced. You can work with these search results in many ways; for example you can edit or browse the documents in which matches were found, or view the search results list in a browser.
This opens the document in the Editor if it is not already open, and highlights the match in the document.
This opens every document in which the selected matches were found, and highlights the selected matches in the documents.
This opens the search results list in the default external browser. You can print the list from the browser.
You can replace special and extended characters in the current document with their HTML equivalents; for example, you can replace "&" with &.
Because of the way that different operating systems treat carriage returns, text files saved on UNIX or Macintosh systems might be double-spaced when you open them in HomeSite.
The double-spaced lines are collapsed to be single-spaced lines.
You can use regular expressions (or RegExp) to match patterns in character strings during Extended Find and Extended Replace operations.
Enabling Regular expressions disables the Skip tags while searching option.
For more information, see "Using Regular Expressions".
For help, see "Using extended search commands".
LiveDocs comments are not longer enabled for ColdFusion 5.0. Please use one of the following resources instead.
ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 5.0