correct formatting of code snippets