class
KalimahApps
/
Daleel
/
CodeHighlighter
/
CodeHighlighter
CodeHighlighter
Handle code highlighting.
Properties
protected
$highlighter Highlight\Highlighter
Highlighter instance.
Highlighter instance
Default: null
Methods
public
__construct ( ) : void
Constructor.
public
highlight ( string $code_block , string $info_line ) : string
Highlight a code string.
Parameters
-
$code_block
string
Code block to highlight
-
$info_line
string
Language to use for highlighting
private
parseLangAndLines ( string $language ) : array
Parse the language and line numbers from the info string.
Parameters
-
$language
string
Info string