HtmlSideBySideRenderer
class HtmlSideBySideRenderer extends HtmlArrayRenderer (View source)
Inline HTML Diff Renderer
Properties
object | $diff | from AbstractRenderer | |
protected array | $defaultOptions | from HtmlArrayRenderer | |
protected array | $options | from AbstractRenderer |
Methods
The constructor. Instantiates the rendering engine and if options are passed, sets the options for the renderer.
Set the options of the renderer to those supplied in the passed in array.
Render a and return diff with changes between the two sequences displayed side by side.
Replace a string containing spaces with a HTML representation using .
Details
__construct(array $options = [])
The constructor. Instantiates the rendering engine and if options are passed, sets the options for the renderer.
setOptions(array $options)
Set the options of the renderer to those supplied in the passed in array.
Options are merged with the default to ensure that there aren't any missing options.
string
render()
Render a and return diff with changes between the two sequences displayed side by side.
string
fixSpaces(string $spaces = '')
Replace a string containing spaces with a HTML representation using .