code = code
                //replace keywords
                .replace(/(var|function|typeof|new|return|if|for|in|while|break|do|continue|case|switch)([^a-z0-9\$_])/gi,'<span class="kwd">$1</span>$2')
                //replace keywords
                .replace(/(\{|\}|\]|\[|\|)/gi,'<span class="kwd">$1</span>')