Java Utililty Methods HTML Create

List of utility methods to do HTML Create

Description

The list of methods to do HTML Create are organized into topic(s).

Method

voidbold()
bold
if (isColored) {
    System.out.print("\u001b[1m");
Stringbold(String s)
bold
return surround(s, "b");
Stringbold(String str)
bold
return "<b>" + textToHtml(str) + "</b>";
Stringbold(String text)
Format text
return "<b>" + text + "</b>";
Stringbold(String text)
bold
return new StringBuffer().append("<b>").append(text).append("</b>").toString();
StringboldenRefOrType(String label)
If the label contains ref= or type= the substring containing the named portion of the attribute will be surrounded with html bold tags e.g., input param return
int it = label.indexOf(" type"); 
if (it < 0) {
    it = label.indexOf(" ref"); 
if (it < 0) {
    return label;
int iq1 = label.indexOf('"', it);
...
StringboldHTML(String input)
Return string enclosed in HTML bold tags
return "<b>" + input + "</b>";
StringboldIf(String str, boolean bold)
Makes a string bold if condition bold is true.
if (bold) {
    return bold(str);
} else {
    return str;
Stringitalics(String inner)
_more_
return tag(TAG_I, "", inner);