Skip to content

Instantly share code, notes, and snippets.

View gabrielcsapo's full-sized avatar
💻
In the matrix

Gabriel Csapo gabrielcsapo

💻
In the matrix
View GitHub Profile
// All elements which match this will be syntax highlighted.
var selector = 'code';
var keywords = ('var function if else for while break switch case do new '
+'continue delete return this true false throw catch typeof').split(' ');
// Syntax definition
// The key becomes the class name of the <span>
// around the matched block of code.
var syntax = {