file parsing
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
file parsing
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!
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
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