[Pmwiki-users] PmWiki WikiStyles implementation testers needed

Patrick R. Michaud pmichaud at sci.tamucc.edu
Fri Feb 14 11:40:45 CST 2003


On Fri, 14 Feb 2003, Jonathan Scott Duff wrote:

> On Fri, Feb 14, 2003 at 11:12:44AM -0600, Patrick R. Michaud wrote:
> > Some possible solutions:
> >   * Require everything in a WikiStyle to be in the form [name]=[value].
> >     Then %=red% would mean to use the previous WikiStyle that had "define=red"
> >     in it.
> >   * Require that the first character following the leading % in a WikiStyle
> >     be a letter.  This would eliminate the mis-classifications that occur in
> 
> I like this one.

Do you mean just the second bullet or both bullets? 

> >   * Other ideas?
> Change the markup such that the WikiStyle is delimited by unlikely
> digraphs.  For instance,  %%define=foo color=red%% %%foo%%.  How often
> do you see 2 consecutive percent signs?  

Of course this can be done but I'm not sure i like it.

> 	%^define=foo color=red%
> 	%^red%This text is red red red %^%

This is better but I don't like having extra characters if I can avoid it.  
Another possibility is to replace your caret with a percent sign:

> 	%%define=foo color=red%
> 	%%red%This text is red red red %%%

and that ought to be quite safe.

> You still might have a problem with premature WikiStyle termination
> though.

Can you explain what you mean here?

Pm





More information about the pmwiki-users mailing list