I would do it this way:
<code class="codeblock">
int foo (int a, int b) { <br />
/* do stuff here */ <br />
} <br />
</code>
And use the css:
code.codeblock {
display: block;
}
Is this OK, or do you find anything unacceptably wrong here? Looks
better than a PRE to me.
Looks ok, but I'd probably just create a generic .block style that could be used for any tag.
.block {display: block}