Closed
Description
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