better pre formatting for embedded snippets