private void changeColor(String line, StringBuilder buffy) {

		int blockStart = line.indexOf("{");
		if (blockStart == -1) {
			buffy.append(line);
			return;
		}

		String cssSelector = line.substring(0, blockStart).trim();
		cssSelector = cssSelector.toLowerCase(); // normalize
		GColor gColor = colorsById.get(cssSelector);
		if (gColor == null) {
			buffy.append(line);
			return;
		}

		Matcher matcher = COLOR_PATTERN.matcher(line);
		if (matcher.find()) {
			matcher.appendReplacement(buffy, "color: " + gColor.toHexString() + ";");
		}

		matcher.appendTail(buffy);
	}
Generates a new event with a URL based upon Ghidra's resources if needed.
Ghidra/Framework/Help/src/main/java/help/GHelpHTMLEditorKit.java