Fix code snippets formatting