Tags:
create new tag
view all tags
Pre is for preserving formatting, not to prevent linking. (verbatim covers that).

On TWikiIRC, nod found a patch:

Can we please apply it to the code base?

-- MartinCleaver - 04 Mar 2004

I agree. For a few more ideas, see: BetterVerbatim

-- TomKagan - 04 Mar 2004

It depends ... this could be a migration hassle for people with existing TWiki's that are using PRE to avoid linking as well as formatting, and only want to include expliciting linking/formatting through embedded HTML. But perhaps we should see if anyone comments here.

-- RichardDonkin - 04 Mar 2004

While BetterVerbatim is pretty radical, the changes he mentioned are fine, although it might be neat to see the functionality implemented as a plugin -- I believe the hooks necessaly are there. It might be accepted into the core, but there should be a setting to enable it in TWikiPreferences so that if a site finds it causes problems (e.g. people use pre to demonstrate linking syntax or don't like the autolinking), it can be disabled and not break existing content. This is pretty easy to add -- a quick check with TWiki::Prefs::getPreferencesFlag will do the job nicely.

Also, it'd be a great help if someone could make up an actual patch file out of the descriptions of the changes in that IRC log. I'm marking this as PatchAdjustmentRequired for now; if someone can make a patch file that does this with a settings check I'll take it right away. If not, I might do it myself sometime.

-- WalterMundt -- 05 Mar 2004

the code mentioned is:

s/[[([^]]+)]]/&specificLink("",$theWeb,$theTopic,$1,$1)/ge;
s/([s(])($wikiWordRegex)/&internalLink($1,$theWeb,$2,$2,"",1)/geo;
at line 2830 in wiki/lib/TWiki.pm, right after the call to &TWiki::Plugins::insidePREHandler( $_ ); for TWiki circa 2004 Feb 27.

-- MattWilkie - 23 Feb 2005

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2005-02-23 - MattWilkie
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.