Package net.sf.xslthl.highlighters
Class StringHighlighter
java.lang.Object
net.sf.xslthl.Highlighter
net.sf.xslthl.highlighters.StringHighlighter
Recognizes strings. Accepted parameters:
- string
- How the string starts. Required.
- endString
- How the string ends. If not present the start value is used.
- escape
- Character to use to escape characters. Optional.
- doubleEscapes
- When present the double usage of start is considered to be an escaped start (used in Pascal). Optional.
- spanNewLines
- When present strings can span newlines, otherwise a newline breaks the string parsing.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.sf.xslthl.Highlighter
Highlighter.IgnoreCaseComparator -
Field Summary
Fields inherited from class net.sf.xslthl.Highlighter
XMLname -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe default style namebooleanPerform highlighting on the current token stream.voidInitializerbooleanstartsWith(CharIter in) return true if the current character is a possible match for this highlighterMethods inherited from class net.sf.xslthl.Highlighter
isNewLine, reset
-
Constructor Details
-
StringHighlighter
public StringHighlighter()
-
-
Method Details
-
init
Description copied from class:HighlighterInitializer- Overrides:
initin classHighlighter- Parameters:
params-- Throws:
HighlighterConfigurationException
-
startsWith
Description copied from class:Highlighterreturn true if the current character is a possible match for this highlighter- Overrides:
startsWithin classHighlighter- Parameters:
in-- Returns:
-
highlight
Description copied from class:HighlighterPerform highlighting on the current token stream. Return true when highlighting was performed, or false in case of a false positive.- Specified by:
highlightin classHighlighter- Parameters:
in-out-- Returns:
-
getDefaultStyle
Description copied from class:HighlighterThe default style name- Specified by:
getDefaultStylein classHighlighter- Returns:
-