add better snippets rendering