Class Text_Highlighter_Renderer_HtmlTags
HTML basic tags renderer, based on Andrey Demenev's HTML renderer.
Elements of $options argument of constructor (each being optional):
- 'numbers' - Line numbering TRUE or FALSE. Default is FALSE.
- 'tabsize' - Tab size, default is 4.
- 'tags' - Array, containing the tags to be used for highlighting
Here's the listing of the default tags:
- 'default' => '',
- 'code' => '',
- 'brackets' => 'b',
- 'comment' => 'i',
- 'mlcomment' => 'i',
- 'quotes' => '',
- 'string' => 'i',
- 'identifier' => 'b',
- 'builtin' => 'b',
- 'reserved' => 'u',
- 'inlinedoc' => 'i',
- 'var' => 'b',
- 'url' => 'i',
- 'special' => '',
- 'number' => '',
- 'inlinetags' => ''
- Text_Highlighter_Renderer
- Text_Highlighter_Renderer_Array
- Text_Highlighter_Renderer_HtmlTags
Package: Text\Highlighter
Category: Text
Copyright: 2005 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/HtmlTags.php
Category: Text
Copyright: 2005 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/HtmlTags.php
public
|
|
public
|
_getFullClassName(),
acceptToken(),
getOutput(),
preprocess()
|
__construct(),
setCurrentLanguage()
|
public
boolean
|
$_numbers | false |
#
Line numbering - will use 'ol' tag |
public
array
|
$_hilite_tags | array(
'default' => '',
'code' => '',
'brackets' => 'b',
'comment' => 'i',
'mlcomment' => 'i',
'quotes' => '',
'string' => 'i',
'identifier' => 'b',
'builtin' => 'b',
'reserved' => 'u',
'inlinedoc' => 'i',
'var' => 'b',
'url' => 'i',
'special' => '',
'number' => '',
'inlinetags' => '',
) |
#
HTML tags map |
$_enumerated,
$_htmlspecialchars,
$_output,
$_tabsize
|
$_language,
$_options
|