TextEdit (at least version 1.3 in Panther) supports restricting a Find and Replace to just the selected text in a document rather than the whole thing. Press the option key when the Find dialog window is open, and the
Replace All button switches to read In Selection. Somewhat oddly, the button will switch even if no text is highlighted to form a "selection."
•
[10,731 views]

