Someday this post could save you an hour: do you need to insert raw HTML code in MediaWiki (for example, an internal image that links to an external website)? Configure it to use $wgRawHtml (its page says that it is safe to use it only if your site is not publicly editable).
I can’t say this often enough: use MediaWiki if and only if you need a website that is a small clone of Wikipedia: if you need something that is just slightly different, use DokuWiki!
Last update: 2008-08-13

I know, Mediawiki is so much like a wikipedia. It does ot have a very good GUI but still it sustains because it is a developer’s platform.
However, you can install a couple of extension to display code as a formatted text inmedia wiki.
I know I could use an extension but it’s easier using DokuWiki. Thanks.