Format snippets in docs.