final class CodeHighlighter

internal  
 

Constants

private DisplayLines

Methods

static string
highlightLine(string $html, int $line, int $column = 0)

Extract a snippet from the code, highlights the row and column, and adds line numbers.

static string
highlightPhp(string $code, int $line, int $column = 0)

Returns syntax highlighted source code.

static string
highlightPhpCli(string $code, int $line, int $column = 0)

Returns syntax highlighted source code to Terminal.

Details

at line 22
static string highlightLine(string $html, int $line, int $column = 0)

Extract a snippet from the code, highlights the row and column, and adds line numbers.

Parameters

string $html
int $line
int $column

Return Value

string

at line 74
static string highlightPhp(string $code, int $line, int $column = 0)

Returns syntax highlighted source code.

Parameters

string $code
int $line
int $column

Return Value

string

at line 124
static string highlightPhpCli(string $code, int $line, int $column = 0)

Returns syntax highlighted source code to Terminal.

Parameters

string $code
int $line
int $column

Return Value

string