CodeExtension
extends AbstractExtension
in package
FinalYes
Table of Contents
Properties
Methods
- __construct() : mixed
- getFilters() : array<string|int, mixed>
- {@inheritDoc}
- highlight() : string
Properties
$highlighter
private
Highlighter
$highlighter
Methods
__construct()
public
__construct(Highlighter $highlighter) : mixed
Parameters
- $highlighter : Highlighter
getFilters()
{@inheritDoc}
public
getFilters() : array<string|int, mixed>
Return values
array<string|int, mixed>highlight()
public
highlight(array<string, mixed> $context, string $code[, string $language = 'text' ]) : string
Parameters
- $context : array<string, mixed>
- $code : string
- $language : string = 'text'