diff options
author | zotlabs <mike@macgirvin.com> | 2017-05-30 19:50:41 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-05-30 19:50:41 -0700 |
commit | dfc0d4cf59a9de98bc088c80e75877d9fc9fcab9 (patch) | |
tree | 705fa6a28cfe3cef7a32deed8b3731aa83c6d34c /library/Text_Highlighter/Text/Highlighter/Renderer.php | |
parent | bfad624528499e27125fae18799940319fc32c6d (diff) | |
download | volse-hubzilla-dfc0d4cf59a9de98bc088c80e75877d9fc9fcab9.tar.gz volse-hubzilla-dfc0d4cf59a9de98bc088c80e75877d9fc9fcab9.tar.bz2 volse-hubzilla-dfc0d4cf59a9de98bc088c80e75877d9fc9fcab9.zip |
move code syntax highlighting to plugin
Diffstat (limited to 'library/Text_Highlighter/Text/Highlighter/Renderer.php')
-rw-r--r-- | library/Text_Highlighter/Text/Highlighter/Renderer.php | 164 |
1 files changed, 0 insertions, 164 deletions
diff --git a/library/Text_Highlighter/Text/Highlighter/Renderer.php b/library/Text_Highlighter/Text/Highlighter/Renderer.php deleted file mode 100644 index cb8993ff8..000000000 --- a/library/Text_Highlighter/Text/Highlighter/Renderer.php +++ /dev/null @@ -1,164 +0,0 @@ -<?php -/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ -/** - * Abstract base class for Highlighter renderers - * - * PHP versions 4 and 5 - * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. - * - * @category Text - * @package Text_Highlighter - * @author Andrey Demenev <demenev@gmail.com> - * @copyright 2004-2006 Andrey Demenev - * @license http://www.php.net/license/3_0.txt PHP License - * @version CVS: $Id$ - * @link http://pear.php.net/package/Text_Highlighter - */ - -/** - * Abstract base class for Highlighter renderers - * - * @author Andrey Demenev <demenev@gmail.com> - * @category Text - * @package Text_Highlighter - * @copyright 2004-2006 Andrey Demenev - * @license http://www.php.net/license/3_0.txt PHP License - * @version Release: @package_version@ - * @link http://pear.php.net/package/Text_Highlighter - * @abstract - */ - -class Text_Highlighter_Renderer -{ - /** - * Renderer options - * - * @var array - * @access protected - */ - var $_options = array(); - - /** - * Current language - * - * @var string - * @access protected - */ - var $_language = ''; - - /** - * Constructor - * - * @access public - * - * @param array $options Rendering options. Renderer-specific. - */ - function __construct($options = array()) - { - $this->_options = $options; - } - - /** - * PHP4 compatable constructor - * - * @access public - * - * @param array $options Rendering options. Renderer-specific. - */ - function Text_Highlighter_Renderer($options = array()) - { - $this->__construct($options); - } - - /** - * Resets renderer state - * - * @access public - * - * @param array $options Rendering options. Renderer-specific. - */ - function reset() - { - return; - } - - /** - * Preprocesses code - * - * @access public - * - * @param string $str Code to preprocess - * @return string Preprocessed code - */ - function preprocess($str) - { - return $str; - } - - /** - * Accepts next token - * - * @abstract - * @access public - * - * @param string $class Token class - * @param string $content Token content - */ - function acceptToken($class, $content) - { - return; - } - - /** - * Signals that no more tokens are available - * - * @access public - * - */ - function finalize() - { - return; - } - - /** - * Get generated output - * - * @abstract - * @return mixed Renderer-specific - * @access public - * - */ - function getOutput() - { - return; - } - - /** - * Set current language - * - * @abstract - * @return void - * @access public - * - */ - function setCurrentLanguage($lang) - { - $this->_language = $lang; - } - -} - -/* - * Local variables: - * tab-width: 4 - * c-basic-offset: 4 - * c-hanging-comment-ender-p: nil - * End: - */ - -?> |