Fix api to show code snippets properly.