Class Text_Highlighter_Renderer_Console
Console renderer
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
- Text_Highlighter_Renderer
- Text_Highlighter_Renderer_Console
Package: Text\Highlighter
Category: Text
Copyright: 2004-2006 Andrey Demenev
License: PHP License
Author: Andrey Demenev <demenev@gmail.com>
Version: Release: 0.7.1
Link: http://pear.php.net/package/Text_Highlighter
Located at x2engine/framework/vendors/TextHighlighter/Text/Highlighter/Renderer/Console.php
Category: Text
Copyright: 2004-2006 Andrey Demenev
License: PHP License
Author: Andrey Demenev <demenev@gmail.com>
Version: Release: 0.7.1
Link: http://pear.php.net/package/Text_Highlighter
Located at x2engine/framework/vendors/TextHighlighter/Text/Highlighter/Renderer/Console.php
public
string
|
|
public
|
|
public
|
|
public
|
|
public
string
|
__construct(),
setCurrentLanguage()
|
public
string
|
$_lastClass |
|
#
class of last outputted text chunk |
public
boolean
|
$_numbers | false |
#
Line numbering |
public
integer
|
$_tabsize | 4 |
#
Tab size |
public
string
|
$_output | '' |
#
Highlighted code |
public
array
|
$_colors | array() |
|
public
array
|
$_defColors | array(
'default' => "\033[0m",
'inlinetags' => "\033[31m",
'brackets' => "\033[36m",
'quotes' => "\033[34m",
'inlinedoc' => "\033[34m",
'var' => "\033[1m",
'types' => "\033[32m",
'number' => "\033[32m",
'string' => "\033[31m",
'reserved' => "\033[35m",
'comment' => "\033[33m",
'mlcomment' => "\033[33m",
) |
$_language,
$_options
|