CodeViewHelper extends AbstractViewHelper

FinalYes

ViewHelper for rendering a code example

Examples

Simple:

<sg:code language="html">your code</sg:code>

All options:

<sg:code language="html" decodeEntities="true" disableOuterWrap="true">your code</sg:code>

Internal

Table of Contents

Properties

$escapeChildren  : bool
$escapeOutput  : bool
$pageRenderer  : PageRenderer

Methods

initializeArguments()  : void
injectPageRenderer()  : void
render()  : string

Properties

$escapeChildren

protected bool $escapeChildren = false

$escapeOutput

protected bool $escapeOutput = false

Methods

initializeArguments()

public initializeArguments() : void

render()

public render() : string
Return values
string

        
On this page

Search results