2
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4
* Abstract base class for Highlighter renderers
8
* LICENSE: This source file is subject to version 3.0 of the PHP license
9
* that is available through the world-wide-web at the following URI:
10
* http://www.php.net/license/3_0.txt. If you did not receive a copy of
11
* the PHP License and are unable to obtain it through the web, please
12
* send a note to license@php.net so we can mail you a copy immediately.
15
* @package Text_Highlighter
16
* @author Andrey Demenev <demenev@gmail.com>
17
* @copyright 2004-2006 Andrey Demenev
18
* @license http://www.php.net/license/3_0.txt PHP License
19
* @version CVS: $Id: Renderer.php,v 1.1 2007/06/03 02:36:35 ssttoo Exp $
20
* @link http://pear.php.net/package/Text_Highlighter
24
* Abstract base class for Highlighter renderers
26
* @author Andrey Demenev <demenev@gmail.com>
28
* @package Text_Highlighter
29
* @copyright 2004-2006 Andrey Demenev
30
* @license http://www.php.net/license/3_0.txt PHP License
31
* @version Release: 0.7.0
32
* @link http://pear.php.net/package/Text_Highlighter
36
class Text_Highlighter_Renderer
44
public $_options = array();
52
public $_language = '';
59
* @param array $options Rendering options. Renderer-specific.
61
function __construct($options = array())
63
$this->_options = $options;
67
* Resets renderer state
71
* @param array $options Rendering options. Renderer-specific.
83
* @param string $str Code to preprocess
84
* @return string Preprocessed code
86
function preprocess($str)
97
* @param string $class Token class
98
* @param string $content Token content
100
function acceptToken($class, $content)
106
* Signals that no more tokens are available
117
* Get generated output
120
* @return mixed Renderer-specific
130
* Set current language
137
function setCurrentLanguage($lang)
139
$this->_language = $lang;
148
* c-hanging-comment-ender-p: nil
2
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4
* Abstract base class for Highlighter renderers
8
* LICENSE: This source file is subject to version 3.0 of the PHP license
9
* that is available through the world-wide-web at the following URI:
10
* http://www.php.net/license/3_0.txt. If you did not receive a copy of
11
* the PHP License and are unable to obtain it through the web, please
12
* send a note to license@php.net so we can mail you a copy immediately.
15
* @package Text_Highlighter
16
* @author Andrey Demenev <demenev@gmail.com>
17
* @copyright 2004-2006 Andrey Demenev
18
* @license http://www.php.net/license/3_0.txt PHP License
19
* @version CVS: $Id: Renderer.php,v 1.1 2007/06/03 02:36:35 ssttoo Exp $
20
* @link http://pear.php.net/package/Text_Highlighter
24
* Abstract base class for Highlighter renderers
26
* @author Andrey Demenev <demenev@gmail.com>
28
* @package Text_Highlighter
29
* @copyright 2004-2006 Andrey Demenev
30
* @license http://www.php.net/license/3_0.txt PHP License
31
* @version Release: 0.7.0
32
* @link http://pear.php.net/package/Text_Highlighter
36
class Text_Highlighter_Renderer
44
public $_options = array();
52
public $_language = '';
59
* @param array $options Rendering options. Renderer-specific.
61
function __construct($options = array())
63
$this->_options = $options;
67
* Resets renderer state
71
* @param array $options Rendering options. Renderer-specific.
83
* @param string $str Code to preprocess
84
* @return string Preprocessed code
86
function preprocess($str)
97
* @param string $class Token class
98
* @param string $content Token content
100
function acceptToken($class, $content)
106
* Signals that no more tokens are available
117
* Get generated output
120
* @return mixed Renderer-specific
130
* Set current language
137
function setCurrentLanguage($lang)
139
$this->_language = $lang;
148
* c-hanging-comment-ender-p: nil
b'\\ No newline at end of file'