Adds wrapping to snippets in pre element.