[pmwiki-users] >>pre<< adds extra lines???

Petko Yotov 5ko at 5ko.fr
Sun Jan 24 07:41:39 CST 2010

On Sunday 24 January 2010 03:54:26, dan mcmullen wrote :
> thanks for the clarification Petko.  i was looking for something like [@
> but with the normal proportional page font.  seems like >>pre<< will not
> do that.

Oh, this is possible via CSS. Add to your file pmwiki/pub/css/local.css such a 
line :

   pre {  font-family:Arial,Helvetica,sans-serif; }

Then [@...@] will display with proportional letters, while preserving all text 
inclucing whitespaces and newlines as it is written in the page (and no wiki 
markup will be processed).

In case you sometimes need the [@...@] to appear with fixed/monospace font, 
you can change the above line to:

 div.proportional pre {  font-family:Arial,Helvetica,sans-serif; }

and then, in the wiki page, place the [@...@] text inside a >>proportional<< 
block :

    my    text

In case you need all text, everywhere, to preserve all spaces, see this 


More information about the pmwiki-users mailing list