phpDocumentor

CodeNodeRenderer
in package
implements NodeRenderer

Interfaces, Classes and Traits

NodeRenderer

Table of Contents

LANGUAGES_MAPPING  = ['html+jinja' => 'twig', 'html+twig' => 'twig', 'jinja' => 'twig', 'html+php' => 'html', 'xml+php' => 'xml', 'php-annotations' => 'php', 'terminal' => 'bash', 'rst' => 'markdown', 'php-standalone' => 'php', 'php-symfony' => 'php', 'varnish4' => 'c', 'varnish3' => 'c', 'vcl' => 'c']
$codeNode  : CodeNode
$renderer  : Renderer
__construct()  : mixed
isLanguageSupported()  : bool
render()  : string
configureHighlighter()  : void
getLines()  : array<string|int, string>

Constants

LANGUAGES_MAPPING

private mixed LANGUAGES_MAPPING = ['html+jinja' => 'twig', 'html+twig' => 'twig', 'jinja' => 'twig', 'html+php' => 'html', 'xml+php' => 'xml', 'php-annotations' => 'php', 'terminal' => 'bash', 'rst' => 'markdown', 'php-standalone' => 'php', 'php-symfony' => 'php', 'varnish4' => 'c', 'varnish3' => 'c', 'vcl' => 'c']

Properties

Methods

isLanguageSupported()

public static isLanguageSupported(string $lang) : bool
Parameters
$lang : string
Return values
bool

configureHighlighter()

private configureHighlighter() : void
Return values
void

getLines()

private getLines(string $code) : array<string|int, string>
Parameters
$code : string
Return values
array<string|int, string>

Search results