|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.xslthl.Highlighter
net.sf.xslthl.WholeHighlighter
net.sf.xslthl.highlighters.HTMLHighlighter
public class HTMLHighlighter
XML/SGML highlighter. It has a couple of default styles: tag, attribute, value, directive. Accepted parameters:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.sf.xslthl.Highlighter |
|---|
Highlighter.IgnoreCaseComparator |
| Field Summary | |
|---|---|
protected Collection<ElementSet> |
elementSets
Overriden styles |
protected String |
styleAttribute
The style for attributes |
protected String |
styleComment
The style for comments |
protected String |
styleDoctype
Style to use for the doctype part |
protected String |
styleElement
Style to use for elements |
protected String |
stylePi
The style for processing instructions |
protected String |
styleValue
The style for attribute values |
| Fields inherited from class net.sf.xslthl.Highlighter |
|---|
styleName, XMLname |
| Constructor Summary | |
|---|---|
HTMLHighlighter()
|
|
| Method Summary | |
|---|---|
String |
getDefaultStyle()
The default style name |
protected String |
getStyleForTagName(String tagName)
|
boolean |
highlight(CharIter in,
List<Block> out)
Perform highlighting on the current token stream. |
void |
init(Params params)
Initializer |
| Methods inherited from class net.sf.xslthl.Highlighter |
|---|
isNewLine, reset, startsWith |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Collection<ElementSet> elementSets
protected String styleElement
protected String styleAttribute
protected String styleValue
protected String stylePi
protected String styleComment
protected String styleDoctype
| Constructor Detail |
|---|
public HTMLHighlighter()
| Method Detail |
|---|
protected String getStyleForTagName(String tagName)
tagName -
public void init(Params params)
throws HighlighterConfigurationException
Highlighter
init in class WholeHighlighterHighlighterConfigurationException
public boolean highlight(CharIter in,
List<Block> out)
Highlighter
highlight in class Highlighterpublic String getDefaultStyle()
Highlighter
getDefaultStyle in class Highlighter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||