src/main/Utils.java
public static String highlightNameLine(String nameLine) {
        if (nameLine.contains("(")) {
            String name = previousWord(nameLine, nameLine.indexOf("("));
            return nameLine.replace(name, "<span class='hljs-title'>" + name + "</span>");
        } else {
            List<String> words = Arrays.asList(DocGen.escapeHTML(nameLine, false).split(" "));
            words.set(words.size() - 1, "<span class='hljs-title'>" + words.get(words.size() - 1) + "<span>");
            return String.join(" ", words);
        }
    }
/**
    * Help highlight.js along, since props and enum signatures are not
    * recognized by highlight.js since they are not full declarations.
    */
Help highlight.js along, since props and enum signatures are not
recognized by highlight.js since they are not full declarations.
Help highlight . js along since props and enum signatures are not recognized by highlight . js since they are not full declarations .
public static String highlightNameLine(String nameLine) {
        if (nameLine.contains("(")) {
            String name = previousWord(nameLine, nameLine.indexOf("("));
            return nameLine.replace(name, "<span class='hljs-title'>" + name + "</span>");
        } else {
            List<String> words = Arrays.asList(DocGen.escapeHTML(nameLine, false).split(" "));
            words.set(words.size() - 1, "<span class='hljs-title'>" + words.get(words.size() - 1) + "<span>");
            return String.join(" ", words);
        }
    }
public static String highlightNameLine ( String nameLine ) { if ( nameLine . contains ( "(" ) ) { String name = previousWord ( nameLine , nameLine . indexOf ( "(" ) ) ; return nameLine . replace ( name , "<span class='hljs-title'>" + name + "</span>" ) ; } else { List < String > words = Arrays . asList ( DocGen . escapeHTML ( nameLine , false ) . split ( " " ) ) ; words . set ( words . size ( ) - 1 , "<span class='hljs-title'>" + words . get ( words . size ( ) - 1 ) + "<span>" ) ; return String . join ( " " , words ) ; } }
Help highlight.js along, since props and enum signatures are not
 recognized by highlight.js since they are not full declarations.
Help highlight . js along since props and enum signatures are not recognized by highlight . js since they are not full declarations .