function _wrapCodeInSpan(name, code) {
        return '<span class="' + name.replace(/\./g, ' ') + (global_class ? ' ' + global_class : '') + '">' + code + '</span>';
    }
takes a string of code and wraps it in a span tag based on the name

@param {string} name     name of the pattern (ie keyword.regex)
@param {string} code     block of code to wrap
@returns {string}