From: Reini U. <ru...@x-...> - 2001-12-07 10:39:16
|
Lawrence Akka schrieb: > > I am keen to implement something like <pre></pre> tags for my own use, so that I can > cut and paste php code into my wiki, between those tags, without all the array > subscripts turning into links. [Yes I know I can use [[, but its a bit of a > nuisance with long blocks of code]. > > Before I reinvent the wheel, has anyone else done this who is prepared to let me see > their code? yes, me. see http://xarch.tu-graz.ac.at/home/rurban/acadwiki-1.3.6pre/viewsrc.php?show=lib/transform.php#src function wtm_code and wtm_verbatim, wtm_nowiki. this needs several hacks in stdlib.php also. I haven't had enough time yet to port it into the newer 1.3 branch. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |