[Pmwiki-users] %class=something% (was Re: Extending ...)

Patrick R. Michaud pmichaud
Mon Mar 1 15:30:12 CST 2004


On Mon, Mar 01, 2004 at 02:09:24PM +1100, Richard Canning wrote:
> Well, I want block text styles, but I don't think I want them bad 
> enough to jump up and down screaming about it.

Noted.  I want them also.  :-)

> Some specific markup that will add <span class=xxx> </span> and 
> <div class=xxx> </div> would really really really (I think three 
> reallys is enough) make PmWiki great. What I have read on the list 
> seems to indicate that there are ways of doing it, rather than a 
> specific way that is coded in that is how it "should" be done. 
> I would like some official markup so I know it is not going to break.

Well, the only reason that there's not an official markup yet is because
I haven't been able to decide what that official markup should be.
But I agree it'd be nice to have a standard way to do it.

Historically I've reserved the '=' at the beginning of a line
for customized markup.  Thus, if someone wants block-level items you
can define a markup such as:

    =note  This is a note in a div with class='note'

by adding the following to local.php

   $InlineReplacements['/^=note (.*)$/'] = "<div class='note'>$1</div>";

Pm



More information about the pmwiki-users mailing list