public String highlightTerm(String originalText, TokenGroup tokenGroup) {if (tokenGroup.getTotalScore() == 0)return originalText;float score = tokenGroup.getTotalScore();if (score == 0) {return originalText;}StringBuilder sb = new StringBuilder(originalText.length() + EXTRA);sb.append("<span style=\"");if (highlightForeground) {sb.append("color: ");sb.append(getForegroundColorString(score));sb.append("; ");}if (highlightBackground) {sb.append("background: ");sb.append(getBackgroundColorString(score));sb.append("; ");}sb.append("\">");sb.append(originalText);sb.append("</span>");return sb.toString();}

public override string HighlightTerm(string originalText, TokenGroup tokenGroup){if (tokenGroup.TotalScore == 0)return originalText;float score = tokenGroup.TotalScore;if (score == 0){return originalText;}var sb = new StringBuilder(originalText.Length + EXTRA);sb.Append("<span style=\"");if (m_highlightForeground){sb.Append("color: ");sb.Append(GetForegroundColorString(score));sb.Append("; ");}if (m_highlightBackground){sb.Append("background: ");sb.Append(GetBackgroundColorString(score));sb.Append("; ");}sb.Append("\">");sb.Append(originalText);sb.Append("</span>");return sb.ToString();}
