To add formatting to code, we have a little [[Template:Code|code template]] that can be used like this:
<!--
<pre>
{{Code|bash$ ls -l
bash$
}}
-->
----
{|class="wikitable" style="width: 10099%; border-width: 1px; border-style: solid; border-color: #aaa"
! Description
! width=40% | You type
|-
|boxed code
|<pre>
{{Code|bash$ ls -l
total 696
}}
</pre>
|{|{{Code|bash$ ls -l
total 696
...
bash$
}}
|}
|}