The UnifiedCli renderer has option cliColor whose only valid value is simple
$this->options['cliColor'] == 'simple'
The Main renderer has the following options:
/**
* @var array Associative array containing the default options available for this renderer and their default
* value.
* - tabSize The amount of spaces to replace a tab character with.
* - format The format of the input texts.
* - cliColor Colorized output for cli.
* - deleteMarkers Markers for removed text.
* - insertMarkers Markers for inserted text.
* - equalityMarkers Markers for unchanged and changed lines.
* - insertColors Fore- and background color for inserted text. Only when cloColor = true.
* - deleteColors Fore- and background color for removed text. Only when cloColor = true.
*/
protected $mainOptions = [
'tabSize' => 4,
'format' => 'plain',
'cliColor' => false,
'deleteMarkers' => ['', ''],
'insertMarkers' => ['', ''],
'equalityMarkers' => ['', ''],
'insertColors' => ['black', 'green'],
'deleteColors' => ['black', 'red'],
];
Option cliColor should be of type boolean and when true the output should be colorized using the colors defined at options insertColors and deleteColors.
btw... The comments in the code block above contains typos as well: cloColor instead of cliColor
See
|
* - insertColors Fore- and background color for inserted text. Only when cloColor = true. |
and
|
* - deleteColors Fore- and background color for removed text. Only when cloColor = true. |
The UnifiedCli renderer has option
cliColorwhose only valid value issimple$this->options['cliColor'] == 'simple'The Main renderer has the following options:
Option
cliColorshould be of type boolean and whentruethe output should be colorized using the colors defined at optionsinsertColorsanddeleteColors.btw... The comments in the code block above contains typos as well:
cloColorinstead ofcliColorSee
php-diff/lib/jblond/Diff/Renderer/MainRendererAbstract.php
Line 39 in e6812d0
php-diff/lib/jblond/Diff/Renderer/MainRendererAbstract.php
Line 40 in e6812d0