[dev] Patch for Text::highlightQuotes()

Chuck Hagenbuch chuck at horde.org
Fri May 9 12:00:42 PDT 2003


Quoting Jason Rust <jrust at rustyparts.com>:

> In seeking to find a solution to highlighting quoted blocks for another
> app I came up with the solution in the patch below.  I think it may be a
> better method than the previous way because it puts only one span around
> the whole quoted block instead of a span around each line.  This cuts
> down on the number of times the regexp is run and the amount of html
> outputted to the browser, so it should be a bit faster.  I've tested it
> out with some complex forwards and it's held up fine.

Cleaned up to follow CODING_STANDARDS and committed, thanks.

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
The alligators were there, too, in a bathtub inside the house.


More information about the dev mailing list