| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (6 out of 14)

Using the Search Facility

You can use the Search facility any time you are using the Text Editor. The facility lets you search for a character or string of characters anywhere in the text, then continue searching for additional instances of the search string.

Searching for Text

To start searching in the Text Editor:

  1. Enter Alt + s to display the Search type-in box. In the next example, the cursor is positioned before the begin statement of the procedure:


  2. Type the text you are searching for in the type-in box.

    Searching for any character or string of characters is incremental. As you enter each character, the search facility moves to and highlights the first instance of that character it locates after the current position. Entering more characters highlights the first instance of the character string. The next example shows the search string, item-con, being highlighted as the characters are entered:



    Note: All Text Editor commands for cutting, pasting, and moving text work within the Search type-in box.

  3. To continue searching for the same string, enter Alt + n (for next). If another instance is found, highlighting moves to that location in text.

  4. To search backwards, enter Alt + p (for previous).

    You can enter Alt + p to search backwards at any time while the Search type-in box is displayed. If you have been searching forward over successive matching instances of your search string (using Alt + n), and then decide to change direction (using Alt + p), the first string match will be the same one you have just found and the highlighted region will not move until you enter Alt + p a second time.

    After the last match has been found, if you enter Alt + n again, the previous match remains highlighted and the message no match appears in the type-in box below the search string:


  5. To end searching, enter Ctrl + a or press Return.

| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (6 out of 14)

Copyright © 1997 Gensym Corporation, Inc.