[pmwiki-users] leading spaces switch for 2.2.0 (somewhat important)

Patrick R. Michaud pmichaud at pobox.com
Mon Mar 26 23:06:28 CDT 2007


On Mon, Mar 26, 2007 at 08:55:27PM -0400, Ben Wilson wrote:
> On 3/26/07, Sandy <sandy at onebit.ca> wrote:
> > Ben Wilson wrote:
> > > Along with [@ @] indicating <pre></pre>, then [@@ @@] could indicate
> > > <pre><code></code></pre>. This seems to work for me as the latter is
> > > "a little more" than the former.

I'm leaving any [@@...@@] markup for recipes to handle,
rather than adding it to the core.

> > What's the difference between <code> and <pre> ? I've checked all my
> > favourite HTML references and found ... they probably don't know either.
> 
> There's not a lot of difference. ...
> [...]
> However, using <code> allows web designers to style that block
> differently than <pre> blocks.

Somehow I think I'd prefer to see this done using classes -- i.e., something 
like <pre class='code'>...</pre> instead of <pre><code>...</code></pre>.

Note that it's also possible to use wikistyles on [@...@] blocks:

    %block bgcolor=yellow% [@
    This is preformatted
    text.
    @]

or

    [@
    This is preformatted
    text.
    @] %block bgcolor=yellow%

and even

    %block frame% [@
    This is preformatted
    text.
    @]

Pm



More information about the pmwiki-users mailing list