Question
I'm pretty sure I saw at one time long ago a configuration setting that would allow the TWiki administrator to create a list of
CamelCase words that are NOT to be interpreted as
WikiWords, for all webs on a given TWiki server.
Now that I need that functionality, I can't find where that configuration is done. Maybe I'm just googling for the wrong search terms, but I tried like the dickens and can't find anything relevant.
Environment
--
ToddBradley - 03 May 2005
Answer
Currently you can only turn off autolinking for a block of text with
<noautolink> tags, or for the whole site or whole web with a NOAUTOLINK = on setting.
You could create a
NoAutolinkPlugin that escapes WikiWords defined in an exclude list in the preferences. How:
- In
initPlugin read a preferences setting that can be on site level and/or web level, e.g.
- Set NOAUTOLINKWORDS = RedHat, McIntosh
- Build a regular expression from this, e.g.
$excludeRegex containing (^|[\(\s])(RedHat|McIntosh)
- In the
startRenderingHandler escape the WikiWords using the regex:
$_[0] =~ s/$excludeRegex/$1<nop>$2/g;
This is not tested but should give you enough ideas on how to proceed.
--
PeterThoeny - 04 May 2005