[pmwiki-users] Making some text stand out in a box
Stirling Westrup
sti at pooq.com
Thu Nov 2 08:06:36 CST 2006
Jan Erik Moström wrote:
> I'm probably missing something really basic, I've these line in
> my config.php file
>
> $WikiStyle['coderesult']['background-color'] = '#33FF33';
> $WikiStyle['coderesult']['border'] = '1px solid red';
> $WikiStyle['coderesult']['padding'] = '5px';
>
> and in the actual page
>
> %coderesult%[@
> p.someField = 0
> @]
>
> My original definition looked like this
>
> %block define=coderesult bgcolor=#ffcc99 border='1px solid gray' padding=5px%
>
> should 'block' be represented in WikiStyle in some way??
Yes. You need to add a line like
$WikiStyle['coderesult']['apply'] = 'block';
Or, you could just use the style inside >><< like:
>>coderesult<<
[@p.someField = 0
@]
More information about the pmwiki-users
mailing list