► |  | Dr Racket: The Racket Programming Environment

1 | Interface Essentials
2 | Languages
3 | Interface Reference
4 | Extending Dr Racket
| Index

▼ | 1 | Interface Essentials

1.1 | Buttons
1.2 | Choosing a Language
1.3 | Editing with Parentheses
1.4 | Searching
1.5 | Tabbed Editing
1.6 | The Interactions Window
1.7 | Graphical Syntax
1.8 | Graphical Debugging Interface
1.9 | The Module Browser
1.10 | Creating Executables

top← prev up next →

#### 1.4`` Searching

DrRacket’s search and replace feature is interactive, similar to those in Safari, Firefox, and Emacs, but with a few differences.

To start a search, first select the Find menu item from the Edit menu. This will open a small editor at the bottom of the DrRacket window. Start typing in there and, as you type, all occurrences of the string you’re searching for will be circled in the editor window. Watch the space right next to the search window to see how many occurrences of the search string there are in your file. When you’re ready, you use the Find Again menu item to jump to the first occurrence of the search string. This will color in one of the circles. Use Find Again a second time to jump to the next occurrence.

If you click back into the definitions window, the Find Again menu item, DrRacket will move the selection to the next occurrence of the search string.

DrRacket also supports a mode where typing in the search editor takes you directly to the next occurrence of the search string, without selecting the Find Again menu item. In the preference dialog, in the Editing section and then in the General section is a checkbox labelled Search using anchors. When it is checked, DrRacket shows a little red dot and a red line indicating where the search anchor is. When the search anchor is enabled, typing in the search window jumps to the first occurrence of the search string after the anchor.

top← prev up next →