[pmwiki-users] Flagging Bare Wikiwords . . .

Patrick R. Michaud pmichaud at pobox.com
Mon Nov 21 09:20:45 CST 2005

On Sun, Nov 20, 2005 at 03:46:20PM -0600, Ben Wilson wrote:
> Okay, I like the 2.1 Beta 1 adoption of WikiWords off by default. I've 
> been slowly moving the sites I manage toward this goal, so, at least for 
> me, this is a step in the right direction.
> However, I would like to know the least invasive way to flag those links 
> so I can catch them. That is, when they are off, they don't stand out. 
> What I would like is these former-links to have a CSS class assigned so 
> I can mark it up that way.
> So, what I tried to do is overload WikiLink, but I was getting errors 
> that I can't redeclare the function (more of a PHP thing, I know). 
> [...]
> I would ask one of two solutions. Either assign WikiLink() to a variable 
> (e.g. $WikiLink) so we may override more painlessly, or sneak a span 
> into WikiLink() as I have done that will allow me to flag the link.

How about a third solution...?  In a local customization file:

    Markup('wikilink', '>urllink',
      "Keep('<span class=\\'missingLink\\'>$0</span>', 'L')");


More information about the pmwiki-users mailing list