Implement a grouping system for applying events/colours to more than one snippet at a time