Rainbow.js - code syntax highlighting in 1.2kb
1–10 of 34 posts
Re: Rainbow.js - code syntax highlighting in 1.2kb
#2 Rainbow["onHighlight"] = Rainbow.onHighlight;
Isn't that line useless since `obj['property'] == obj.property` is always true?https://github.com/ccampbell/rainbow/blob/master/js/rainbow....
Re: Rainbow.js - code syntax highlighting in 1.2kb
#3Re: Rainbow.js - code syntax highlighting in 1.2kb
#4Rainbow["onHighlight"] = Rainbow.onHighlight; Isn't that line useless since `obj['property'] == obj.property` is always true? https://github.com/ccampbell/rainbow/blob/master/js/rainbow....
Re: Rainbow.js - code syntax highlighting in 1.2kb
#5Rainbow["onHighlight"] = Rainbow.onHighlight; Isn't that line useless since `obj['property'] == obj.property` is always true? https://github.com/ccampbell/rainbow/blob/master/js/rainbow....
In order to preserve the methods and keep them public you have to reference them like this.
Re: Rainbow.js - code syntax highlighting in 1.2kb
#6I can't see the license specified anywhere, any chance you could add a LICENSE file or similar?
Re: Rainbow.js - code syntax highlighting in 1.2kb
#7This looks like a very worthy replacement for http://code.google.com/p/google-code-prettify/ I can't see the license specified anywhere, any chance you could add a LICENSE file or similar?
https://github.com/ccampbell/rainbow/blob/master/js/rainbow....
Re: Rainbow.js - code syntax highlighting in 1.2kb
#8This looks like a very worthy replacement for http://code.google.com/p/google-code-prettify/ I can't see the license specified anywhere, any chance you could add a LICENSE file or similar?
It's under Apache 2.0. Just not specified in a LICENSE file yet. https://github.com/ccampbell/rainbow/blob/master/js/rainbow....
Re: Rainbow.js - code syntax highlighting in 1.2kb
#9 blocks (say inserted via an ajax call) after the page loads? I did not see an equivalent of the prettify() function of google-code-prettify that lets you do this. Looks great otherwise.Re: Rainbow.js - code syntax highlighting in 1.2kb
#10Is there a way to style dynamically inserted blocks (say inserted via an ajax call) after the page loads? I did not see an equivalent of the prettify() function of google-code-prettify that lets you do this. Looks great otherwise.