[pmwiki-users] create a shortcut markup string

Patrick R. Michaud pmichaud at pobox.com
Mon Jan 31 21:50:34 CST 2005


On Mon, Jan 31, 2005 at 04:43:25PM -0800, Menachem Shapiro wrote:
> On Mon, 31 Jan 2005 17:10:49 -0600, Patrick R. Michaud wrote:
> > There's an easier way to do this.  Just add the following to config.php:
> >   $WikiStyles['RED']['apply'] = 'block';
> >   $WikiStyles['RED']['color'] = 'red';
> > and then %RED% will be the same as %block color=red%.
>
> I could not get this to work. 

I've *got* to stop typing answers without testing them fully.  Sorry
about that -- no 's' in $WikiStyle...:

   $WikiStyle['RED']['apply'] = 'block';
   $WikiStyle['RED']['color'] = 'red';

Now tested (and demonstrated) at http://www.pmwiki.org/wiki/Test/WikiStyleRED.

Pm



More information about the pmwiki-users mailing list