text: public virtual 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();sb.Append("<font ");if (m_highlightForeground){sb.Append("color=\"");sb.Append(GetForegroundColorString(score));sb.Append("\" ");}if (m_highlightBackground){sb.Append("bgcolor=\"");sb.Append(GetBackgroundColorString(score));sb.Append("\" ");}sb.Append(">");sb.Append(originalText);sb.Append("</font>");return sb.ToString();}