Skip to content

Instantly share code, notes, and snippets.

@kylejlin
Last active July 16, 2016 21:17
Show Gist options
  • Save kylejlin/c7277f9803363cb0e6f8db4c68648424 to your computer and use it in GitHub Desktop.
Save kylejlin/c7277f9803363cb0e6f8db4c68648424 to your computer and use it in GitHub Desktop.
Random text to demo Github's syntax highlighting.
/* The GitHub Theme for Ace does not look anything like GitHub. I can't find the colors used for the syntax highlighting
on any docs so I created this sampler and I will use the Chrome Element Inspector to find the colors.
*/
function noop() {
}
var MyObject = {
CONSTANT: 9,
someMethod: function() {
window.alert();
}
};
function MyClass(foo) {
this.foo = foo;
}
MyClass.prototype.alertFoo = function() {
window.alert(this.foo);
}
MyClass.prototype.someProperty = 9;
noop(window, Number, alert, true, null, 0, 'some string', /someregexp/, MyObject.someMethod(), MyObject.CONSTANT, undefined, MyObject.CONSTANT_CALLED_AS_A_METHOD());
// Some comment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment