docs: 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;
    }