[pmwiki-users] preformatted text block *with* formatting? (bug in [@..@] ?)
Patrick R. Michaud
pmichaud at pobox.com
Thu May 25 15:51:27 CDT 2006
On Thu, May 25, 2006 at 12:23:52PM -0700, Jo Rhett wrote:
> On Wed, May 24, 2006 at 01:45:47PM -0500, Patrick R. Michaud wrote:
> > Another way of doing it is to define a local css class in pub/css/local.css:
> >
> > .pre { font-family:monospace; white-space:pre; }
> > and then do
> >
> > >>pre<<
> > $ run this command
>
> Hm. This was exactly what I wanted. I speak an hour yesterday reading
> through the docs trying to find this kind of syntax. I kept finding
> cookbook entries for stuff that should be simple. Why is this page in the
> SandBox and not in the real docs?
Because I don't know where to put it...? I'm more serious than humorous
here -- many times things aren't in the "real docs" because I have
no clue where it should logically go without making a documentation
page overly complex or incoherent.
> Anyway, I'll keep looking but what I'm really looking for is a simple way
> to define a span. Something like this
>
> Define a local css class in pub/css/local.css:
> .example { font-family:monospace; white-space:pre; bgcolor:white; }
>
> >>example<<
> text
> >><<
>
> Which would hopefully give me
>
> <span class="example">
> text
> </span>
That's a WikiStyle. Define your local css class, and then use
%example% text %%
to produce <span class='example'> text </span> .
(Note that WikiStyles can do much more than just CSS, but that's the
basic approach for CSS.)
Pm
More information about the pmwiki-users
mailing list