[Pmwiki-users] creating own markups

Knut Alboldt mailing
Wed Oct 20 12:34:24 CDT 2004


I try to define an own markup in a script I included in config.php. The 
markup should replace lines like

"> text in a line"

into

"<div class='myclass'>text in a line</div>"

e.g. like a header-markup ("! headertext")

I tried this with:

	Markup('^>','inline','/^>(.*)$/','<div class=\'pagefield\'>$1</div>');

and

	Markup('^>','block','/^>(.*)$/','<:block><div class=\'pagefield\'>$1</div>');

(just copied from some existing in ExtendedMarkups and modified slightly - 
may be to much)

but no translation takes place.

can please somebody help ?

Thanks in advance.

Knut 




More information about the pmwiki-users mailing list