How to allow code block in wordpress comments

WordPress allows it by default ( of course, plugins or theme can change that ). The code should be wrapped in <code></code>, like this:

<code>
global $var;
echo $var;
</code>