code: function highlightAuto(text) {
      var result = {
        keyword_count: 0,
        relevance: 0,
        value: escape(text)
      };
      var second_best = result;
      for (var key in languages) {
        if (!languages.hasOwnProperty(key))
          continue;
        var current = highlight(key, text);
        current.language = key;
        if (current.keyword_count + current.relevance > second_best.keyword_count + second_best.relevance) {
          second_best = current;
        }
        if (current.keyword_count + current.relevance > result.keyword_count + result.relevance) {
          second_best = result;
          result = current;
        }
      }
      if (second_best.language) {
        result.second_best = second_best;
      }
      return result;
    }
docs: /*
  Highlighting with language detection. Accepts a string with the code to
  highlight. Returns an object with the following properties:
  
  - language (detected language)
  - relevance (int)
  - keyword_count (int)
  - value (an HTML string with highlighting markup)
  - second_best (object with the same structure for second-best heuristically
  detected language, may be absent)