[pmwiki-users] white-space=pre

christian.ridderstrom at gmail.com christian.ridderstrom at gmail.com
Mon Jul 17 16:24:57 CDT 2006

On Mon, 17 Jul 2006, Patrick R. Michaud wrote:

> On Mon, Jul 17, 2006 at 12:25:52PM +0200, christian.ridderstrom at gmail.com wrote:
>> Just a tip.
>> I was trying to style an included text (from an external source) as
>> preformatted, but I didn't want to put it inside [@..@]. This is a problem
>> I've run into before, but now I managed to solve it like this:
>> In the configuration file, add this:
>> 	$WikiStyleCSS[] = 'white-space';
>> [...]
>> Is there some other way of getting a block pre-formatted without using
>> [@...@]?
> Leading spaces at the beginning of each line...?
> Other than that, there aren't any built-in markups or styles for doing 
> block pre-formatted markup.

Ok. In that case I think

  	$WikiStyleCSS[] = 'white-space';

should be part of the standard distribution (and I can add how to do this 
to the documentation). The following is quite useful:

 	>>white-space=pre font-family=monospace<<
 	bla bla bla
 	(:include SomePage:)

The difference with [@...@] is for instance that this wouldn't work:

 	bla bla bla
 	(:include SomePage:)


Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr

More information about the pmwiki-users mailing list