file parsing

General questions about using TextPad

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

Post Reply
ibgadmin
Posts: 7
Joined: Wed Mar 10, 2010 11:35 pm

file parsing

Post by ibgadmin »

I have a file I would like to search for a given value and once found -- bookmark that line and the next 25 lines from the file. Is that at all possible? Appreciate the help!
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

The only way I can think of to do that is to create a macro which does the search, and then bookmarks the line,
and then repeats 25 times (by doing it 25 times when recording the macro) go down one line + bookmark line

The problem is:
as far as I know you can't react to the event "not found", i.e. if the search doesn't find anything, you will have the current *) line + 25 lines bookmarked.




*) the line the cursor was in at the start of the macro
Post Reply