[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Re: Selecting text
- Subject: Re: Selecting text
- From: TBaehr@xxxxxxxx
- Date: Thu, 5 Sep 1996 20:31:27 -0400
In a message dated 96-09-05 19:37:26 EDT, scott larson wrote:
≪ Does anyone know how to select text while running a "find" operation,
preferably within a macro???
≫
Dunno if this is what you have in mind, but:
XD BX se[a]/optional_switches |search string|Q2
DF BX seb[a]/optional_switches |search string|Q2 DF DE
The DE at the end is optional; it places the cursor at the end of the
highlight. Note that you don't want to start with, for instance, se/f and
then se again -- That will fail to catch a search string at the very
beginning of a file. The bar character | is the separator, and the
optional_switches can be anything but /f (and /t makes no sense for the
second search!). XD, BX, Q2, DF, DE are function calls that you can put in
your program file from the command line using this command:
pfun XX
where XX is the function.
The command pfunc works too, and it's the "official" one; but pfun is fine
and has one less character!
Tim Baehr
TBaehr@xxxxxxxx