[Pmwiki-users] Escape Sequence [= ... =]

Michael_Paulukonis@divintech.com Michael_Paulukonis
Wed Jun 9 12:26:56 CDT 2004


Aha! Thank you very much.

Michael J. Paulukonis
Technical Support Specialist
Diversified Information Technologies
570-343-2300 Ext 3043




"Patrick R. Michaud" <pmichaud at pobox.com> 
06/09/2004 01:51 PM

To
Michael_Paulukonis at divintech.com
cc
pmwiki-users at pmichaud.com
Subject
Re: [Pmwiki-users] Escape Sequence [= ... =]






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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://contra.vosn.net/pipermail/pmwiki-users_pmichaud.com/attachments/20040609/3c5e34a7/attachment.htm


More information about the pmwiki-users mailing list