[Pmwiki-users] Re: Re: Disabling WikiWords
Christian Ridderström
chr
Thu Feb 12 11:38:54 CST 2004
On Thu, 12 Feb 2004, Patrick R. Michaud wrote:
> On Thu, Feb 12, 2004 at 04:57:19PM +0100, bram wrote:
> >
> > I gave it some more thoughts in the car. I think it will get a
> > quite 'expensive' operation to render all words in a text.
>
> Yes, but there'd be an easier/more efficient way for this. If I added
> a $FinalReplacements array with things to be done just before text
> is output (but after [=...=] sequences have been restored)
Why *after* [=..=] have been restored? (Then they aren't necessarily
preserved)
Would this be before or after the stuff "quoted" using Keep() is restored?
> then one could do:
>
> $FinalReplacements["/\\b$word\\b(?![^<]*>/i"] =
> "<strong class='highlight'>$word</strong>";
What was the motivation for this? (I've forgotten) Is just "this might be
good to have?"
/Christian
--
Christian Ridderstr?m http://www.md.kth.se/~chr
More information about the pmwiki-users
mailing list