[Pmwiki-users] Escape Sequence [= ... =]
Patrick R. Michaud
pmichaud
Wed Jun 9 11:51:22 CDT 2004
On Wed, Jun 09, 2004 at 11:34:05AM -0400, Michael_Paulukonis at divintech.com wrote:
>
> Is there some other tag to generate mono-spaced?
> The empty-space is somewhat counter-intuitive. I'd prefer a simple
> one-tag=code, somehow.
Why not create a custom markup for this? For example, add
$InlineReplacements['/^=listing (.*)$/'] =
"<pre class='listing'>$1</pre>";
to your config.php, and then the markup
=listing [=$!/bin/bash
echo "Hello,world"
ls -f /etc
=]
would display as preformatted text, no blank lines in front (unless
you put one there), and you'd have the ability to style the
listings using stylesheet properties.
Pm
More information about the pmwiki-users
mailing list