Search options

General questions about using TextPad

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

Post Reply
Laurie
Posts: 1
Joined: Wed Oct 06, 2010 4:37 pm
Location: Canada

Search options

Post by Laurie »

Hi

I have bookmarked some lines for copy and paste to another document and would like to also mark the next line. Is there a way to do this?

For example Sigma is bookmarked so that I can copy and paste the those lines to another document but I would like to be able to also mark the lines with the percentages below.

>Sigma 7331 6596 186
100% 100% 100%

Thanks for any help!
Laurie
paleolith
Posts: 46
Joined: Sun Jun 26, 2005 6:25 pm
Contact:

Post by paleolith »

ctrl home
macro record
F2
down arrow
ctrl F2
macro stop recording
in the dialog box, name it marknext and choose "repeat to end of file"
macro marknext

Explanation: this creates a macro which repeatedly goes to the next marked line, goes down one line, and toggles the bookmark on that line. Note that TP does not have a "set bookmark" command, which has some ramifications. If you run the macro twice, it reverses its action. If you have two consecutive lines already marked, the second will get unmarked and the line after it will NOT get marked. Also, I find that the first line needing marking tends to get left in the wrong state; I haven't tried to figure out why. As long as you can live with these limitations, it should work.

The obvious solution, of forcing the Find to include the line following the target word, does not work. Apparently "mark all" only marks the first line of the found target.

Edward
Post Reply