[pmwiki-users] Custom Markup: $2 does not work correctly (regexp problem?)

Dawid Gajownik gajownik at gmail.com
Thu Aug 24 13:54:29 CDT 2006


Hi!
	I wanted to unify look of articles in my wiki so I started creating 
custom markup similar to this one → 
http://gentoo-wiki.com/Gentoo_Linux_Wiki:Text_Formatting_Templates 
Simple things with one parameter works correctly. There are problems 
with more complicated ones, though. For instance I've created this markup:

Markup("boxfile", "block", '/\\(:boxfile (.*?) | (.*?):\\)/s', "<div 
class=\"boxfile\"><p><strong>File:</strong> $1</p><pre>$2</pre></div>");

(I'm not sure about this "block" option). Do I have to say that it does 
not work as expected? ;) Please take a look here → 
http://wiki.fedorapl.org/Main/WikiSandbox

May someone suggest me how to fix it, please?

Regards,
	Dawid

-- 

   ^_*





More information about the pmwiki-users mailing list