On 3/25/2010 5:50 PM, Paul E. Bloch wrote:
I have this style defined in my config.php:
$WikiStyle['eg']['background-color']='#EEFFCC' ;
$WikiStyle['eg']['padding-left']='40px' ;
$WikiStyle['eg']['font-family']='monospace' ;
$WikiStyle['eg']['white-space']='pre' ;
$WikiStyle['eg']['apply']='block' ;
I want to use it as:
eg<<
11111111111111111
11111111111111
111111111111
1111111111111
<<
The problem is that the<div> with my 'eg' style, has a<p> inside,
1] Move the first 1111 to appear on the same line as the div start
2] Separate each line with \\
>>eg<<11111111111111111\\
11111111111111\\
111111111111\\
1111111111111
>><<
[2] Might not be what you want, so perhaps combine the div with [...@..@]
markup, which also has side effects:
>>eg<<[...@11111111111111111
11111111111111
111111111111
1111111111...@]
>><<
Perhaps one of those combinations gets close to what you want.
how would I add styling for the<p> elements? I thought the
$WikiStyle['eg']['apply']='block' ;
> made the style apply to all block type tags;<div> as well as<p>.
Rather than styles, you might to try defining a class, which is what you
have with the >>eg<< markup:
$HTMLStylesFmt['bloch-eg']='.eg {background-color:#EEFFCC;
padding-left:40px; font-family: monospace; white-space: pre;}';
and then add some styling for P tags inside the class:
$HTMLStylesFmt['bloch-eg']='.eg p {font-family: monospace; white-space:
pre;}';
~ ~ Dave
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users