update formatting for code snippets