update snippet active styles and scripts