|
From: Robert S. <Ro...@Sc...> - 2008-05-16 17:31:29
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>There aren't two different classes for searching/replacing. It's
always SearchAndReplace.<br>
<br>
The delivered startup script (%JEDIT_HOME%\startup</tt><tt>\startup.bsh)
contains the method s(search,replace,flags) for using as abbreviation.
It's defined at jEdit startup and available for use in macros every
time.<br>
<br>
Robert<br>
</tt><tt><br>
<br>
</tt><br>
Nathaniel Gray wrote:
<blockquote
cite="mid:aee...@ma..."
type="cite">
<pre wrap="">Ah, good idea! I guess it's SearchAndReplace then. I'm surprised
there isn't a simpler interface like:
search(buffer, string, startpos, flags)
But I guess I'll have to write one myself...
Thanks,
-n8
On Thu, May 15, 2008 at 1:19 PM, Robert Schwenn <a class="moz-txt-link-rfc2396E" href="mailto:Ro...@sc..."><Ro...@sc...></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
did You try to record a macro? The result should be usable.
Robert
Nathaniel Gray schrieb:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
What's the proper way to do regular expression searches of buffers
inside macros and plugins? I've been poking around in the TextArea
and Buffer docs and haven't found anything yet. I did see
org.gjt.sp.jedit.search.SearchAndReplace but it has a very strange,
stateful interface. Is it only for the S&R dialog, or is that what I
should be using?
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>
|