[pmwiki-users] Re: preformatted text

Patrick R. Michaud pmichaud at pobox.com
Fri Aug 12 07:45:56 CDT 2005

On Fri, Aug 12, 2005 at 09:40:10AM +0200, chr at home.se wrote:
> On Fri, 12 Aug 2005, Patrick R. Michaud wrote:
> > So, perhaps we can reduce author surprise and add our needed markup
> > by saying that [@...@] around text with newlines results in a
> > <pre>...</pre> block instead of <code>...</code>.
> Sounds potentially brilliant! 
> The result of the following:
> 	[@
> 	A preformatted line
> 	@]
> seems obvious to me, but what would the result be of this markup:
> 	A normal line [@What is
> 	this text???@]
> Will you ghet "What is" on the same line as "A normal line", or will it 
> start on a line of its own? (I have a vague memory that <pre>..</pre> 
> introduces a new line by itself)

You're memory is correct -- you would get:

        A normal line
        What is
        this text???

with the last two lines being preformatted/monospace.

I now have the [@...@] sequence implemented on pmwiki.org if
anyone is interested in playing with it.


More information about the pmwiki-users mailing list