[pmwiki-users] finding lines with space in front

Hans design5 at softflow.co.uk
Wed Jun 18 10:06:38 CDT 2008

Tuesday, June 17, 2008, 2:47:31 PM, jdd wrote:

> as a more general solution, could it be possible to have such line 
> with a grey background, like mediawiki?

add to pub/css/local.css a  style rule for pre (preformatted text)

pre { color: gray; }

You could also find lines with empty spaces at the beginning,
for instance using http://www.pmwiki.org/wiki/Cookbook/TextExtract

search for \^   that is: backslash,caret,empty space

you can also force preformatted text to wrap.
add to local.css

  pre {
    white-space: pre-wrap;       /* CSS-3                  */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999    */
    white-space: -pre-wrap;      /* Opera 4-6              */
    white-space: -o-pre-wrap;    /* Opera 7                */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
    _white-space: pre; 


More information about the pmwiki-users mailing list