You should switch to html view and enter, for example:

<pre xml:html>
<!-- your HTML code here -->
</pre>

 

Don't forget to turn on GeSHi plugin in the plugin manager!

Taken from here.ÂÂ