public String toHtml(String text) {

		String html = text;
		if (isBold()) {
			html = HTMLUtilities.bold(html);
		}
		if (isItalic()) {
			html = HTMLUtilities.italic(html);
		}

		if (color != null) {
			html = HTMLUtilities.colorString(color, html);
		}

		return html;
	}
Wraps the given text with HTML markup for each attribute and color defined by this 
class.  The returned result will <b>not</b> be prepended with <code>&lt;HTML&gt;</code>.

@param text the text to wrap
@return the wrapped text
Ghidra/Features/Base/src/main/java/ghidra/app/util/ColorAndStyle.java