- todo In highlight.php 10.x, replace the @final attribute with the `final` keyword.
- final
- internal // Backward compatibility properties
- property Highlight\Mode $mode (DEPRECATED) All properties traditionally inside of $mode are now available directly from this class.
- property bool $caseInsensitive (DEPRECATED) Due to compatibility requirements with highlight.js, use `case_insensitive` instead.
Cloneable
Instantiable
-
Extends
stdClass Highlight\Mode
Properties |
public
$name
|
Methods |
public
__construct
(
$lang
,
$filePath
)
|
public
__get
(
$name
)
|
public
compile
(
$safeMode
) Compile the Language definition.
|
Properties |
private
static
$COMMON_KEYWORDS
=
[
'of'
,
'and'
,
'for'
,
'in'
,
'not'
,
'or'
,
'if'
,
'then'
]
|
private
$mode
|
Methods |
private
commonKeyword
(
$word
)
|
private
compileKeywords
(
$rawKeywords
,
$caseSensitive
)
|
private
compileMode
(
$mode
,
$parent
=
NULL
)
|
private
dependencyOnParent
(
$mode
)
|
private
expandOrCloneMode
(
$mode
)
|
private
inherit
(
$params
,
$_
=
[
]
) |
private
langRe
(
$value
,
$global
=
false
)
|
private
scoreForKeyword
(
$keyword
,
$providedScore
)
|
private
splitAndCompile
(
$className
,
$str
,
array
$compiledKeywords
,
$caseSensitive
)
|
Properties |
private
static
$COMMON_KEYWORDS
=
[
'of'
,
'and'
,
'for'
,
'in'
,
'not'
,
'or'
,
'if'
,
'then'
]
|
Methods |