[pmwiki-users] Wiki McFix

John Rankin john.rankin at affinity.co.nz
Tue Aug 16 22:42:09 CDT 2005


On Wednesday, 17 August 2005 3:28 AM, David Sovinski <aslan at aslandata.com> wrote:
>You can even do pattern matching in the config.php to disable patterns 
>from becoming wikiwords. There is an example in the config.php
>So you could diable anything starting with "Mc" from becoming a
>wiki link
>
Something like the following:

Markup('mc','<`wikiword','/`?\\b(Ma?c[[:upper:]][[:lower:]]+)\\b/e',
    "Keep('$1')");

This says: before evaluating escaped wikiwords, look for words
starting with Mac or Mc followed by an uppercase letter and
put them to one side so they don't get wikified.

-- 
JR
--
John Rankin






More information about the pmwiki-users mailing list