To use the mixin, just ensure that your codesnippets are wrapped in a .highlight class.

Ruby

Pusher.trigger('my-channel', 'my-event', {
  message: 'hello world'
});

JavaScript

var channel = pusher.subscribe('my-channel');
channel.bind('my-event', function(data) {
  alert('Received my-event with message: ' + data.message);
});