[Pmwiki-users] Newbie struggles with embedding pgm listings and cmd examples

Patrick R. Michaud pmichaud
Wed Nov 3 07:49:59 CST 2004


On Wed, Nov 03, 2004 at 08:22:33AM -0600, Bruce Files wrote:
> But I find myself continually struggling with something that should be
> easy - embedding chunks of mono-spaced, plain-text program listings or
> command examples.  I've gone over the Text Formatting Rules and the
> other doc repeatedly, but I can't seem to find an easy way to do this.

Use space+[= for monospaced plain-text program listings.

> I tried coding this all sorts of ways, but I found it nearly impossible
> to (a) prevent the command example from wrapping and (b) preserve the
> number context.

Alas, there's not presently a good way to preserve the number context and
make use of monospace formatting, short of introducing a new markup.
What would you like it to be?

(Yes, it would be possible to get [@...@], or any other markup sequence you
might care to define, to always generate <pre> sections.) 

Pm



More information about the pmwiki-users mailing list