Many thanks, Peter. <br>I have scrolled the web for hours in the quest of such a recipe.<br>SourceBlock is my choice for code, as suggested by Xavier. I still love the direct way you first showed. I will be using it for everything else than code.<br>

Thanks again. This helps me a lot.<br><br>Have a good day, Olivier<br><br><div class="gmail_quote">On 18 April 2011 18:21, Peter Bowers <span dir="ltr"><<a href="mailto:pbowers@pobox.com">pbowers@pobox.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Mon, Apr 18, 2011 at 11:30 AM, Olivier Planchon<br>
<<a href="mailto:olivier.planchon@gmail.com">olivier.planchon@gmail.com</a>> wrote:<br>
> I want to display C++ code in my pmWiki pages.<br>
> I want to limit the size allowed to display the code, like in the (:input<br>
> textarea name [=value=] rows=n cols=n:) form, where [=value=] will be tens<br>
> or hundreds lines of C++ code.<br>
<br>
</div>I got this from the release notes sections of some of HansB's recipes<br>
-- I think it'll do what you want:<br>
<br>
(:div style="height:12em; padding:.4em; border:1px solid #dddddd;<br>
background-color: #f8f8f8; overflow: auto;":)<br>
[@<br>
Code goes here.  Adjust the height and etc. in the style configuration above.<br>
@]<br>
(:divend:)<br>
<br>
See <a href="http://www.qdk.org/pmwiki/index.php?n=Test.Scroll" target="_blank">http://www.qdk.org/pmwiki/index.php?n=Test.Scroll</a> to see it in<br>
action with some random PHP code.<br>
<br>
You don't have to use [@...@] if you have a preferred way to display<br>
it (see below) -- this is just a quick way to make sure nothing in the<br>
code is interpreted as markup for your page.<br>
<br>
You might also be interested in these resources for displaying code:<br>
<br>
* <a href="http://www.pmwiki.org/wiki/Cookbook/Syntaxlove" target="_blank">http://www.pmwiki.org/wiki/Cookbook/Syntaxlove</a><br>
* <a href="http://www.pmwiki.org/wiki/Cookbook/SourceBlock" target="_blank">http://www.pmwiki.org/wiki/Cookbook/SourceBlock</a><br>
<font color="#888888"><br>
-Peter<br>
</font></blockquote></div><br><br clear="all"><br><br>