[pmwiki-users] <code> or <kbd>

Menachem Shapiro menachem.shapiro at gmail.com
Wed Feb 2 21:58:59 CST 2005


B"H
On Thu, 3 Feb 2005 14:50:49 +1100, Nathan Jones <pmwiki at optimo.com.au> wrote:
> The only option I can see is PmWiki.MarkupMasterIndex's recommendation to
> put space before preformatted text. BUT:
> 
> 1. When I paste in a code example, I have to add a space to the beginning
>    of each line, or else PmWiki will stop the <pre> and treat un-indented
>    text as a paragraph instead.
> 
> 2. When I want to copy a code example while viewing a page, I get an
>    extra space at the beginning of each line.
> 
> 3. Space-before-code grievance aside, there is a style issue: I may not
>    want my preformatted text to be further from the side than other text.
> 
> How do I avoid this?
> 
> ([@code formatting@] sounded hopeful, but <code> doesn't preserve
> linebreaks, even if surrounded by <pre> as a result of indenting the
> first line.)
>

Try something like this (there is a space before the first bracket):

 [=
Code here
more code here
and so on
=]

Menachem
 
> --
> Nathan Jones
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://pmichaud.com/mailman/listinfo/pmwiki-users
> 


-- 
Are you interested in using Linux?
Download Libranet 2.8.1 for free and try it out.
http://www.libranet.com/trial_download.html



More information about the pmwiki-users mailing list