Page 1 of 1
file parsing
Posted: Wed Mar 10, 2010 11:53 pm
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!
Posted: Thu Mar 11, 2010 7:14 am
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