[Pmwiki-users] Preformatted markup (was: Idea for extension ofspecial list syntax)

Dominique Faure dominique.faure at laposte.net
Mon Jan 24 01:05:40 CST 2005


> See http://www.pmwiki.org/wiki/Test/MarkupForPreformattedText for
> examples etc. The text below is basically put on that page (but perhaps
> slightly
> more readable?).
>
> I'd suggest allowing something more verbose such as
>
> (:pre:) [= ...
>
> =]
>
> However, there's also a cake I'd like to eat and still have... what I
> mean is that I'd like to be able to write something like this:
>
> (:pre-with-stripped-vertical-space:) [=
> #!/bin/sh
> ...
> =]
>
> and *not* get empty lines at the beginning/end of the preformatted text.
> I know this is actually against what the markup actually says since we
> quote using [=...=], but *very* often find the extra vertical space
> annoying.
>
> I know the solution is to write:
>
> (:pre:) [=#!/bin/sh
> ... =]
>
> but this makes it much more difficult to maintain the text on the wiki
> page. For instance, you can no longer simply select some lines to replace
> the preformatted text. Instead you have to carefully start the selection
> just after '[='.
>
> /Christian
>
> --
> Christian Ridderström, +46-8-768 39 44
> http://www.md.kth.se/~chr

You may already try my Cookbook.CodeBlock for your (:pre:) [= ... =] 
needs...

Dominique




More information about the pmwiki-users mailing list