Class Text_Highlighter_Renderer_BB
BB code renderer, based on Andrey Demenev's HTML renderer.
Elements of $options argument of constructor (each being optional):
- 'numbers' - Line numbering TRUE or FALSE
- 'tabsize' - Tab size, default is 4
- 'bb_tags' - An array containing three BB tags, see below
- 'tag_brackets' - An array that conains opening and closing tags, [ and ]
- 'colors' - An array with all the colors to be used for highlighting
The default BB tags are:
- 'color' => 'color'
- 'list' => 'list'
- 'list_item' => '*'
The default colors for the highlighter are:
- 'default' => 'Black',
- 'code' => 'Gray',
- 'brackets' => 'Olive',
- 'comment' => 'Orange',
- 'mlcomment' => 'Orange',
- 'quotes' => 'Darkred',
- 'string' => 'Red',
- 'identifier' => 'Blue',
- 'builtin' => 'Teal',
- 'reserved' => 'Green',
- 'inlinedoc' => 'Blue',
- 'var' => 'Darkblue',
- 'url' => 'Blue',
- 'special' => 'Navy',
- 'number' => 'Maroon',
- 'inlinetags' => 'Blue',
- Text_Highlighter_Renderer
- Text_Highlighter_Renderer_Array
- Text_Highlighter_Renderer_BB
Package: Text\Highlighter
Category: Text
Copyright: 20045 Stoyan Stefanov
License: PHP License
Author: Stoyan Stefanov <ssttoo@gmail.com>
Version: Release: 0.5.0
Link: http://pear.php.net/package/Text_Highlighter
Located at x2engine/framework/vendors/TextHighlighter/Text/Highlighter/Renderer/BB.php
Category: Text
Copyright: 20045 Stoyan Stefanov
License: PHP License
Author: Stoyan Stefanov <ssttoo@gmail.com>
Version: Release: 0.5.0
Link: http://pear.php.net/package/Text_Highlighter
Located at x2engine/framework/vendors/TextHighlighter/Text/Highlighter/Renderer/BB.php
public
|
|
public
|
_getFullClassName(),
acceptToken(),
getOutput(),
preprocess()
|
__construct(),
setCurrentLanguage()
|
public
boolean
|
$_numbers | false |
#
Line numbering - will use the specified BB tag for listings |
public
array
|
$_bb_tags | array (
'color' => 'color',
'list' => 'list',
'list_item' => '*',
'code' => 'code',
) |
#
BB tags to be used |
public
array
|
$_tag_brackets | array ('start' => '[', 'end' => ']') |
#
BB brackets - [ and ] |
public
boolean
|
$_colors | array(
'default' => 'Black',
'code' => 'Gray',
'brackets' => 'Olive',
'comment' => 'Orange',
'mlcomment' => 'Orange',
'quotes' => 'Darkred',
'string' => 'Red',
'identifier' => 'Blue',
'builtin' => 'Teal',
'reserved' => 'Green',
'inlinedoc' => 'Blue',
'var' => 'Darkblue',
'url' => 'Blue',
'special' => 'Navy',
'number' => 'Maroon',
'inlinetags' => 'Blue',
) |
#
Colors map |
$_enumerated,
$_htmlspecialchars,
$_output,
$_tabsize
|
$_language,
$_options
|