[pmwiki-users] Some basic formatting question
H. Fox
haganfox at users.sourceforge.net
Thu Jul 6 11:41:04 CDT 2006
On 7/6/06, Jan Erik Moström <lists at mostrom.pp.se> wrote:
> + If I have several lines of code then I should use [= =], correct?
>
> Or are there better ways of doing it?
For several preformatted lines, [@@] works better than [==] .
[@
Some lines
of code...
@]
You can indent the block with
->[@
Some lines
of code...
@]
If you want to style the block, remember to put "block" in the wikistyle.
->%block background-color=#f7f7f7 padding=3px%[@
Some lines
of code...
@]
If you'll style multiple blocks, you can define the wikistyle and reuse it
%define=codeblock block indent background-color=#f7f7f7 padding=3px%
%codeblock%[@
Some lines
of code...
@]
%codeblock%[@
Some more lines
of code...
@]
Hagan
More information about the pmwiki-users
mailing list