html/rainbow/rainbow.js
function() {

            // if you want to straight up highlight a string you can pass the string of code,
            // the language, and a callback function
            if (typeof arguments[0] == 'string') {
                return _highlightBlockForLanguage(arguments[0], arguments[1], arguments[2]);
            }

            // if you pass a callback function then we rerun the color function
            // on all the code and call the callback function on complete
            if (typeof arguments[0] == 'function') {
                return _highlight(0, arguments[0]);
            }

            // otherwise we use whatever node you passed in with an optional
            // callback function as the second parameter
            _highlight(arguments[0], arguments[1]);
        }
function() {

            // if you want to straight up highlight a string you can pass the string of code,
            // the language, and a callback function
            if (typeof arguments[0] == 'string') {
                return _highlightBlockForLanguage(arguments[0], arguments[1], arguments[2]);
            }

            // if you pass a callback function then we rerun the color function
            // on all the code and call the callback function on complete
            if (typeof arguments[0] == 'function') {
                return _highlight(0, arguments[0]);
            }

            // otherwise we use whatever node you passed in with an optional
            // callback function as the second parameter
            _highlight(arguments[0], arguments[1]);
        }
function ( ) { // if you want to straight up highlight a string you can pass the string of code, // the language, and a callback function if ( typeof arguments [ 0 ] == 'string' ) { return _highlightBlockForLanguage ( arguments [ 0 ] , arguments [ 1 ] , arguments [ 2 ] ) ; } // if you pass a callback function then we rerun the color function // on all the code and call the callback function on complete if ( typeof arguments [ 0 ] == 'function' ) { return _highlight ( 0 , arguments [ 0 ] ) ; } // otherwise we use whatever node you passed in with an optional // callback function as the second parameter _highlight ( arguments [ 0 ] , arguments [ 1 ] ) ; }
starts the magic rainbow

@returns void
starts the magic rainbow