PHP Class Text_Highlighter_Renderer_Console, yii
Suitable for displaying text on color-capable terminals, directly
or trough less -r
Elements of $options argument of constructor (each being optional):
- 'numbers' - whether to add line numbers
- 'tabsize' - Tab size
- 'colors' - additional colors
Show file
Open project: yiisoft/yii
Public Properties
Public Methods
Method Details
acceptToken()
public method
Signals that no more tokens are available
getOutput()
public method
preprocess()
public method
replaceCallback()
public method
Property Details
$_defColors public property
$_lastClass public property
class of last outputted text chunk
public string $_lastClass |
return |
string |
|
$_numbers public property
public bool $_numbers |
return |
boolean |
|
public string $_output |
return |
string |
|
$_tabsize public property
public int $_tabsize |
return |
integer |
|