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

Michael_Paulukonis@divintech.com Michael_Paulukonis
Wed Jun 9 09:34:15 CDT 2004


>You can also try the [@...@] which puts text in monospace and quotes it.
I.e. instead of

Is this documented anywhere? Can't find it. That's great for in-line, 
though. Thanks.

Ah, "space[=" _is_ in the escape sequence docs.  So is "Lines indented 
with one or more spaces (or tabs) are monospace font."

Heck. Sorry about all that.

However, I'd still like a better way to quote chunks code without extra 
spaces, etc. 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. As would my users, I suspect. Or me when I have to 
edit their pages into legibility.

Hrm. @@[= <multiple lines of code> =]@@ doesn't parse well. It functions 
like the monospace-quote, above--no linebreaks, spacing, etc. Only works 
if I give it the extra space at the beginning. Which, of course, also 
displays as an extra space at the beginning, as well.

Erm, if the "extra-space at the beginning" signifies monospaced text, 
shouldn't it then be NOT displayed? ie, no other code is displayed after 
interpretation.... just a thought

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

Message: 7
Date: Wed, 9 Jun 2004 15:54:38 +0200
From: Christian Ridderstr?m <chr at home.se>
Subject: [Pmwiki-users] Re: Escape Sequence [= ... =]


On Tue, 8 Jun 2004 Michael_Paulukonis at divintech.com wrote:

> However, If I enter [= at the BEGINNING of a line, while the text is not 

> "parsed" by pmWiki, it is neither monospaced no layed-out properly (line 

> breaks are ignored, etc). I have to have a space at the beginning of the 

> line, then [= to start it out.

This is actually the way it's supposed to be.

> This means that my monospace-listings are 
> ALWAYS preceded by an empty line, and short fragments of code included 
> within a sentence are not in monospace--just uninterpreted.

Yes, I also find this annoying. If you can come up with a good idea for 
how the syntax should be, I'm sure Pm will listen to it.

> Is there some setting or config step that I'm missing?

No... [=..=] is basically used to prevent PmWiki from interpreteing the 
stuff within, and in order to output stuff as <CODE>..</CODE> you have 
to preceed the line with a space (or a tab). What's needed is probaly a 
markup for starting a <CODE>..</CODE> without having to have the extra 
white space.

You can also try the [@...@] which puts text in monospace and quotes it.
I.e. instead of

> * [= SingleWikiWords('Main/SingleWikiWords'); =]

try

* [@ SingleWikiWords('Main/SingleWikiWords'); @]

/Christian

-- 
Christian Ridderstr?m 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://contra.vosn.net/pipermail/pmwiki-users_pmichaud.com/attachments/20040609/bedad6c6/attachment.htm


More information about the pmwiki-users mailing list