Snippet insertion