Replace snippets by tags