com.woltlab.wcf.data.message.bbcode.code.data.message.bbcode.highlighter
Highlights syntax of source code.
| Class | Description |
|---|---|
CHighlighter |
Highlights syntax of c / c++ source code. |
CssHighlighter |
Highlights syntax of cascading style sheets. |
JavaHighlighter |
Highlights syntax of java source code. |
JsHighlighter |
Highlights syntax of javascript source code. |
MysqlHighlighter |
Highlights syntax of mysql queries. |
XmlHighlighter |
Highlights syntax of xml documents. |
| Type | Name |
|---|---|
mixed |
$allowsNewslinesInQuotes |
mixed |
$cacheCommentsRegEx |
mixed |
$cachedComments |
mixed |
$cachedQuotes |
mixed |
$commentEnd |
mixed |
$commentStart |
mixed |
$escapeSequence |
static mixed |
$highlighterObjects |
mixed |
$keywords1 |
mixed |
$keywords2 |
mixed |
$keywords3 |
mixed |
$keywords4 |
mixed |
$keywords5 |
mixed |
$operators |
mixed |
$quotes |
mixed |
$quotesRegEx |
mixed |
$separators |
mixed |
$separatorsRegEx |
mixed |
$singleLineComment |
mixed |
$style |
| Return | Name |
|---|---|
Highlighter |
__construct()
|
void |
buildRegularExpressions()
|
void |
cacheComment( $string, $comment)
|
void |
cacheComments( $string)
|
void |
cacheQuote( $quote)
|
void |
cacheQuotes( $string)
|
void |
encodeHTML( $string)
|
static Highlighter |
getHighlighter( $name)
|
string |
highlight(string $string)
|
void |
highlightComments( $string)
|
void |
highlightKeywords( $string)
|
void |
highlightNumbers( $string)
|
void |
highlightOperators( $string)
|
void |
highlightQuotes( $string)
|
protected mixed $allowsNewslinesInQuotes = false
Redefined in descendants as: MysqlHighlighter::$allowsNewslinesInQuotes, XmlHighlighter::$allowsNewslinesInQuotes
protected mixed $cacheCommentsRegEx = ''
protected mixed $cachedComments = array()
protected mixed $cachedQuotes = array()
protected mixed $commentEnd = array("*/")
Redefined in descendants as: XmlHighlighter::$commentEnd
protected mixed $commentStart = array("/*")
Redefined in descendants as: XmlHighlighter::$commentStart
protected mixed $escapeSequence = array("\\")
protected static mixed $highlighterObjects = array()
protected mixed $keywords1 = array()
Redefined in descendants as: CHighlighter::$keywords1, CssHighlighter::$keywords1, JsHighlighter::$keywords1, MysqlHighlighter::$keywords1
protected mixed $keywords2 = array()
Redefined in descendants as: CHighlighter::$keywords2, CssHighlighter::$keywords2, JavaHighlighter::$keywords2, JsHighlighter::$keywords2, MysqlHighlighter::$keywords2
protected mixed $keywords3 = array()
Redefined in descendants as: CssHighlighter::$keywords3, JavaHighlighter::$keywords3
protected mixed $keywords4 = array()
Redefined in descendants as: CssHighlighter::$keywords4
protected mixed $keywords5 = array()
protected mixed $operators = array()
Redefined in descendants as: CHighlighter::$operators, JsHighlighter::$operators, MysqlHighlighter::$operators, XmlHighlighter::$operators
protected mixed $quotes = array("'", "\"")
Redefined in descendants as: MysqlHighlighter::$quotes, XmlHighlighter::$quotes
protected mixed $quotesRegEx = ''
protected mixed $separators = array()
Redefined in descendants as: CHighlighter::$separators, CssHighlighter::$separators, JavaHighlighter::$separators, JsHighlighter::$separators, MysqlHighlighter::$separators, XmlHighlighter::$separators
protected mixed $separatorsRegEx = ''
protected mixed $singleLineComment = array("//")
Redefined in descendants as: CssHighlighter::$singleLineComment, MysqlHighlighter::$singleLineComment, XmlHighlighter::$singleLineComment
protected mixed $style = array(
'quotes' => "color:red",
'comments' => "color:green",
'operators' => "color:green",
'keywords1' => "color:blue",
'keywords2' => "color:darkred",
'keywords3' => "color:darkviolet",
'keywords4' => "color:darkgoldenrod",
'keywords5' => "color:crimson",
'numbers' => "color:darkorange"
)
Redefined in descendants as: CssHighlighter::$style, MysqlHighlighter::$style
protected Highlighter __construct()
Creates a new Highlighter object.
protected void buildRegularExpressions()
Builds regular expressions.
protected void cacheComment( $string, $comment)
Caches a source code comment.
$string $comment protected void cacheComments( $string)
protected void cacheQuote( $quote)
Caches a quote.
$quote protected void cacheQuotes( $string)
Caches quotes.
$string protected void encodeHTML( $string)
Encodes html characters.
$string public static Highlighter getHighlighter( $name)
Returns a highlighter object.
$name public string highlight(string $string)
Highlights syntax of source code.
$string protected void highlightComments( $string)
Highlights comments.
$string Redefined in descendants as: HtmlHighlighter::highlightComments(), TplHighlighter::highlightComments()
protected void highlightKeywords( $string)
Highlights keywords.
$string Redefined in descendants as: XmlHighlighter::highlightKeywords()
protected void highlightNumbers( $string)
Highlights numbers.
$string Redefined in descendants as: CssHighlighter::highlightNumbers()
protected void highlightOperators( $string)
Highlights operators.
$string protected void highlightQuotes( $string)
Highlights quotes.
$string