Package Torello.JavaDoc.SyntaxHiLite
Class HiLiteHTML
- java.lang.Object
-
- Torello.JavaDoc.SyntaxHiLite.AbstractHiLiter
-
- Torello.JavaDoc.SyntaxHiLite.HiLiteHTML
-
- All Implemented Interfaces:
java.io.Serializable
public class HiLiteHTML extends AbstractHiLiter implements java.io.Serializable
- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/JavaDoc/SyntaxHiLite/HiLiteHTML.java
- Open New Browser-Tab: Torello/JavaDoc/SyntaxHiLite/HiLiteHTML.java
File Size: 11,874 Bytes Line Count: 312 '\n' Characters Found
-
-
Nested Class Summary
Nested Classes Modifier and Type Class static class
HiLiteHTML.AttribRule
static class
HiLiteHTML.Config
static class
HiLiteHTML.Indices
-
Field Summary
Serializable ID Modifier and Type Field protected static long
serialVersionUID
User-Provided Customizations (Optional, Extra Hi-Liting Rules) for HTML Attribute Key-Value Pairs Modifier and Type Field ReadOnlyMap<String,
HiLiteHTML.AttribRule>extraRules
-
Fields inherited from class Torello.JavaDoc.SyntaxHiLite.AbstractHiLiter
closers, CONFIG_ARR_LEN, openers, utilize
-
-
Method Summary
Generate an Instance of this Class, having all Default-Configurations Modifier and Type Method static HiLiteHTML
generateHiLiterDefault()
Perform Syntax-HiLiting on a Parsed HTML-Page Modifier and Type Method Vector<HTMLNode>
hiLite(Vector<HTMLNode> html)
Methods: class java.lang.Object Modifier and Type Method boolean
equals(Object other)
String
toString()
TESTING 1 2 3 Modifier and Type Method static void
main(String[] argv)
-
Methods inherited from class Torello.JavaDoc.SyntaxHiLite.AbstractHiLiter
getClosingTag, getOpeningTag, getUtilized, hashCode
-
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
- See Also:
- Constant Field Values
- Code:
- Exact Field Declaration Expression:
protected static final long serialVersionUID = 1;
-
extraRules
public final ReadOnlyMap<java.lang.String,HiLiteHTML.AttribRule> extraRules
- Code:
- Exact Field Declaration Expression:
public final ReadOnlyMap<String, AttribRule> extraRules;
-
-
Method Detail
-
generateHiLiterDefault
public static HiLiteHTML generateHiLiterDefault()
- Code:
- Exact Method Body:
return new Config().generateHiLiter();
-
hiLite
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- Code:
- Exact Method Body:
return ToStringHTML.classHiLiteHTML(this, this.CONFIG_ARR_LEN, this.tags, this.tpwa);
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classAbstractHiLiter
- Code:
- Exact Method Body:
return (! super.equals(other)) ? false : this.extraRules.equals(((HiLiteHTML) other).extraRules);
-
main
public static void main(java.lang.String[] argv) throws java.io.IOException
- Throws:
java.io.IOException
- Code:
- Exact Method Body:
String htmlAsStr = FileRW.loadFileToString("Torello/BuildJAR/Documentation/Global/Appendable.html"); Vector<HTMLNode> htmlAsVec = HTMLPage.getPageTokens(htmlAsStr, false); HiLiteHTML hl = new Config().generateHiLiter(); final String css = FileRW.loadFileToString ("Torello/HTML/Tools/SyntaxHiLite/data-files/html-default.css"); String hiLitedHTML = "<HTML>\n<HEAD>\n" + "<META HTTP-EQUIV=Cache-Control CONTENT='no-cache, no-store, must-revalidate'>\n" + "<META HTTP-EQUIV=Pragma CONTENT=no-cache>\n" + "<META HTTP-EQUIV=Expires CONTENT=0>\n" + "<STYLE TYPE='text/css'>\n" + css + '\n' + "</STYLE>\n" + "</HEAD>\n" + "<BODY>\n" + "<PRE CLASS=HL>\n" + Util.pageToString(hl.hiLite(htmlAsVec)) + '\n' + "</PRE>\n" + "</BODY>\n" + "</HTML>\n"; System.out.println("Writing File: " + BYELLOW + "OUT/out.html" + RESET); FileRW.writeFile(hiLitedHTML, "OUT/out.html"); System.out.println(hl.toString());
-
-