better parsing of code snippets, keeps more text formating