[pmwiki-users] Re: Binding several classes in wiki styles

Dominique Faure dominique.faure at gmail.com
Tue Nov 22 16:11:09 CST 2005


2005/11/22, Patrick R. Michaud <pmichaud at pobox.com>:
> On Tue, Nov 22, 2005 at 03:58:14PM +0100, Dominique Faure wrote:
> > I'm looking for a mean to "merge" style definitions into wiki text
> > without the help of local customization file. Currently, the following
> > text:
> >
> >   %style1 style2% Stylized text
> >
> > is rendered as:
> >
> >   <span class='style2' > Stylized text</span>
> >
> > using the last declared style class. How about a small style syntax
> > enhancement to allow the rendering of:
> >
> >   %style1 +style2% Stylized text
> >
> > as:
> >
> >   <span class='style1 style2' > Stylized text</span>
>
> Would this be only for class= attributes?  In other words, if
> we have
>
>   %define=style1 color=red%
>   %define=style2 color=blue%
>
> would you expect %style1 +style2% to become ... ?
>
>    <span style='color:red; color:blue;'>
>

I was primarily thinking of the 'class' attributes.
Anyway, I found a solution myself with regular style definitions as:

  %class='style1 style2'%  Stylized text

which works as expected...
...Once again, I feeling dumbstruck how powerful PmWiki could be, chapeau bas!

Regards,
Dom




More information about the pmwiki-users mailing list