Convert code snippets to html markup