Find: mark matching lines only in selection

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
mikez302
Posts: 20
Joined: Thu Nov 20, 2008 7:46 pm

Find: mark matching lines only in selection

Post by mikez302 »

I would like to use "Mark All" command in the Find box to mark lines matching the search string, but only within my selection, instead of the whole document.

Is this possible? If so, how can I do this?
ACRobin
Posts: 134
Joined: Fri Nov 04, 2005 9:51 pm
Location: Northumberland,UK
Contact:

Post by ACRobin »

Shame there is not a tick box in the "Find" dialogue to do what you want.

There are two ways to solve your problem:

use the "Replace" function to find your selection and add a marker to the beginning of the line (unique as you will want to take it out later).

Then use the "Find" to "Mark" lines where the unique text you inserted are.

or

Cut out the text you want to search through into a new document, do what you need to do, then insert it back in the main document.

My thoughts.
mikez302
Posts: 20
Joined: Thu Nov 20, 2008 7:46 pm

Post by mikez302 »

Thank you. I have been doing your 2nd suggestion. I was wondering if there is a simpler way.
Post Reply