- Display code inline like script.sh, by using <code>script.sh</code>.
- Blocks of code can be wrapped with <pre>insert your code here</pre>. This works multi-line but doesn't allow formatting.
- Indent your text to enable a <pre> like block, then apply standard '''bold''' and ''italic'' formatting.
You will need root access to your server and subversion installed, then follow the simple instructions on the extension website. Download the extension and GeSHi then add it to your LocalSettings.php.
Now you have a fourth option, wrap your code with <source lang="X">code here</source> where X is php, java, bash, ruby or one of the other nearly 50 supported langauges!