Adding snippet handler to content