Sha256: 8fee4f9c44ae31d51d259b8a824e32a55bc3a3b92a1136a8ea059352e9260a03
Contents?: true
Size: 594 Bytes
Versions: 16
Compression:
Stored size: 594 Bytes
Contents
--- layout: post title: "Syntax Highlighting" subtitle: "For code snippets, a pygments typography mixin is included to highlight different languages." categories: layout permalink: /layout/syntax-highlighting/ --- To use the mixin, just ensure that your codesnippets are wrapped in a `.highlight` class. **Ruby** ``` ruby Pusher.trigger('my-channel', 'my-event', { message: 'hello world' }); ``` *** **JavaScript** ``` javascript var channel = pusher.subscribe('my-channel'); channel.bind('my-event', function(data) { alert('Received my-event with message: ' + data.message); }); ```
Version data entries
16 entries across 16 versions & 2 rubygems