From ed7a9440e24e272dabf10ea1cc1c3c06bbc79c06 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 11 Dec 2009 06:46:52 +0100 Subject: downgraded geshi to stable version to support all languages --- paste/include/geshi/contexts/html/comment.php | 46 ---------- paste/include/geshi/contexts/html/css.php | 49 ----------- paste/include/geshi/contexts/html/doctype.php | 50 ----------- paste/include/geshi/contexts/html/html.php | 55 ------------ paste/include/geshi/contexts/html/javascript.php | 49 ----------- paste/include/geshi/contexts/html/string.php | 56 ------------- .../geshi/contexts/html/string_javascript.php | 55 ------------ paste/include/geshi/contexts/html/tag.php | 98 ---------------------- 8 files changed, 458 deletions(-) delete mode 100644 paste/include/geshi/contexts/html/comment.php delete mode 100644 paste/include/geshi/contexts/html/css.php delete mode 100644 paste/include/geshi/contexts/html/doctype.php delete mode 100644 paste/include/geshi/contexts/html/html.php delete mode 100644 paste/include/geshi/contexts/html/javascript.php delete mode 100644 paste/include/geshi/contexts/html/string.php delete mode 100644 paste/include/geshi/contexts/html/string_javascript.php delete mode 100644 paste/include/geshi/contexts/html/tag.php (limited to 'paste/include/geshi/contexts/html') diff --git a/paste/include/geshi/contexts/html/comment.php b/paste/include/geshi/contexts/html/comment.php deleted file mode 100644 index 346b16b..0000000 --- a/paste/include/geshi/contexts/html/comment.php +++ /dev/null @@ -1,46 +0,0 @@ - - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL - * @copyright (C) 2005 Nigel McNie - * @version 1.1.0 - * - */ - -$this->_contextDelimiters = array( - 0 => array( - 0 => array(''), - 2 => false - ) -); - -$this->_styler->setStyle($CONTEXT, 'color:#888;'); -$this->_contextStyleType = GESHI_STYLE_COMMENTS; - -?> diff --git a/paste/include/geshi/contexts/html/css.php b/paste/include/geshi/contexts/html/css.php deleted file mode 100644 index a6107f1..0000000 --- a/paste/include/geshi/contexts/html/css.php +++ /dev/null @@ -1,49 +0,0 @@ - - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL - * @copyright (C) 2005 Nigel McNie - * @version 1.1.0 - * - */ - -$this->_contextDelimiters = array( - 0 => array( - //@todo [blocking 1.1.9] The array('REGEX#]+>\s*( array(''), - 2 => false - ) -); - -$this->_delimiterParseData = GESHI_CHILD_PARSE_NONE; - -$this->_overridingChildContext =& new GeSHiCodeContext('css'); - -?> diff --git a/paste/include/geshi/contexts/html/doctype.php b/paste/include/geshi/contexts/html/doctype.php deleted file mode 100644 index 818730c..0000000 --- a/paste/include/geshi/contexts/html/doctype.php +++ /dev/null @@ -1,50 +0,0 @@ - - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL - * @copyright (C) 2005 Nigel McNie - * @version 1.1.0 - * - */ - -$this->_contextDelimiters = array( - 0 => array( - 0 => array(' array('>'), - 2 => false - ) -); - -$this->_childContexts = array( - // HTML strings have no escape characters, so the don't need to be GeSHiStringContexts - new GeSHiContext('html', $DIALECT, 'string') -); - -$this->_styler->setStyle($CONTEXT, 'font-weight:bold;color:#933;'); - -?> diff --git a/paste/include/geshi/contexts/html/html.php b/paste/include/geshi/contexts/html/html.php deleted file mode 100644 index 2e9169d..0000000 --- a/paste/include/geshi/contexts/html/html.php +++ /dev/null @@ -1,55 +0,0 @@ - - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL - * @copyright (C) 2005 Nigel McNie - * @version 1.1.0 - * - */ - -$this->_childContexts = array( - new GeSHiContext('html', $DIALECT, 'doctype'), - new GeSHiCodeContext('html', $DIALECT, 'tag'), - new GeSHiContext('html', $DIALECT, 'comment'), - new GeSHiContext('html', $DIALECT, 'css'), - new GeSHiContext('html', $DIALECT, 'javascript') -); - -$this->_styler->setStyle($CONTEXT, 'color:#000;'); - -$this->_contextRegexps = array( - 0 => array( - 0 => array('#(&(([a-z0-9]{2,5})|(\#[0-9]{2,4}));)#'), - 1 => '&', - 2 => array( - 1 => array($CONTEXT . '/entity', 'color: #00c;', false) - ) - ) -); - -?> diff --git a/paste/include/geshi/contexts/html/javascript.php b/paste/include/geshi/contexts/html/javascript.php deleted file mode 100644 index 1ba7352..0000000 --- a/paste/include/geshi/contexts/html/javascript.php +++ /dev/null @@ -1,49 +0,0 @@ - - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL - * @copyright (C) 2005 Nigel McNie - * @version 1.1.0 - * - */ - -$this->_contextDelimiters = array( - 0 => array( - 0 => array('REGEX#]+>#i'), - 1 => array(''), - 2 => false - ) -); - -// If this is set to parse any of the delimiters, the OCC swallows it up - setStartStyle and -// setEndStyle have no meaning in a context with an OCC (actually, nor does setStyle) -$this->_delimiterParseData = GESHI_CHILD_PARSE_NONE; - -$this->_overridingChildContext = new GeSHiCodeContext('javascript'); - -?> diff --git a/paste/include/geshi/contexts/html/string.php b/paste/include/geshi/contexts/html/string.php deleted file mode 100644 index 55149e5..0000000 --- a/paste/include/geshi/contexts/html/string.php +++ /dev/null @@ -1,56 +0,0 @@ - - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL - * @copyright (C) 2005 Nigel McNie - * @version 1.1.0 - * - */ - -$this->_contextDelimiters = array( - // Each of ' and " delimiters. In their own group so they only end themselves - 0 => array( - 0 => array("'"), - 1 => array("'"), - 2 => false - ), - 1 => array( - 0 => array('"'), - 1 => array('"'), - 2 => false - ) -); - -$this->_childContexts = array( - new GeSHiContext('html', $DIALECT, 'string_javascript') -); - -$this->_styler->setStyle($CONTEXT, 'color:#933;'); -$this->_contextStyleType = GESHI_STYLE_STRINGS; - -?> diff --git a/paste/include/geshi/contexts/html/string_javascript.php b/paste/include/geshi/contexts/html/string_javascript.php deleted file mode 100644 index f210bc0..0000000 --- a/paste/include/geshi/contexts/html/string_javascript.php +++ /dev/null @@ -1,55 +0,0 @@ - - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL - * @copyright (C) 2005 Nigel McNie - * @version 1.1.0 - * - */ - -//@todo [blocking 1.1.1] (bug 11) Using a ^ before the starters does -// not work, because when useless contexts are purged neither the ^return -// nor the ^javascript: are matched so this context is removed. -// I'm leaving it until 1.1.1 to solve this. One way might be to add a flag -// to this array or a field to the GeSHiContext class that says "never remove -// me, even if I am useless" -$this->_contextDelimiters = array( - 0 => array( - 0 => array('REGEX#return#', 'REGEX#javascript:#'), - 1 => array('"'), - 2 => false - ) -); - -// If this is set to parse any of the delimiters, the OCC swallows it up - setStartStyle and -// setEndStyle have no meaning in a context with an OCC (actually, nor does setStyle) -$this->_delimiterParseData = GESHI_CHILD_PARSE_LEFT; - -$this->_overridingChildContext = new GeSHiCodeContext('javascript'); - -?> diff --git a/paste/include/geshi/contexts/html/tag.php b/paste/include/geshi/contexts/html/tag.php deleted file mode 100644 index 44bed38..0000000 --- a/paste/include/geshi/contexts/html/tag.php +++ /dev/null @@ -1,98 +0,0 @@ - - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL - * @copyright (C) 2005 Nigel McNie - * @version 1.1.0 - * - */ - -$this->_contextDelimiters = array( - 0 => array( - 0 => array('REGEX#<[/a-z_0-6]+#i'), - 1 => array('>'), - 2 => false - ) -); - -$this->_childContexts = array( - // HTML strings have no escape characters, so the don't need to be GeSHiStringContexts - new GeSHiContext('html', $DIALECT, 'string') -); - -$this->_styler->setStyle($CONTEXT, 'color:#008000;'); -$this->_styler->setStyle($CONTEXT_START, 'font-weight:bold;color:#000;'); -$this->_styler->setStyle($CONTEXT_END, 'font-weight:bold;color:#000;'); - -$this->_contextKeywords = array( - 0 => array( - // keywords - 0 => array( - 'abbr', 'accept-charset', 'accept', 'accesskey', 'action', 'align', - 'alink', 'alt', 'archive', 'axis', 'background', 'bgcolor', 'border', - 'cellpadding', 'cellspacing', 'char', 'charoff', 'charset', 'checked', - 'cite', 'class', 'classid', 'clear', 'code', 'codebase', 'codetype', - 'color', 'cols', 'colspan', 'compact', 'content', 'coords', 'data', - 'datetime', 'declare', 'defer', 'dir', 'disabled', 'enctype', 'face', - 'for', 'frame', 'frameborder', 'headers', 'height', 'href', 'hreflang', - 'hspace', 'http-equiv', 'id', 'ismap', 'label', 'lang', 'language', - 'link', 'longdesc', 'marginheight', 'marginwidth', 'maxlength', 'media', - 'method', 'multiple', 'name', 'nohref', 'noresize', 'noshade', 'nowrap', - 'object', 'onblur', 'onchange', 'onclick', 'ondblclick', 'onfocus', - 'onkeydown', 'onkeypress', 'onkeyup', 'onload', 'onmousedown', - 'onmousemove', 'onmouseout', 'onmouseover', 'onmouseup', 'onreset', - 'onselect', 'onsubmit', 'onunload', 'profile', 'prompt', 'readonly', - 'rel', 'rev', 'rows', 'rowspan', 'rules', 'scheme', 'scope', 'scrolling', - 'selected', 'shape', 'size', 'span', 'src', 'standby', 'start', 'style', - 'summary', 'tabindex', 'target', 'text', 'title', 'type', 'usemap', - 'valign', 'value', 'valuetype', 'version', 'vlink', 'vspace', 'width' - ), - // name - 1 => $CONTEXT . '/attrs', - // style - 2 => 'color:#006;', - // case sensitive - 3 => false, - // url - 4 => '' - ) -); - -$this->_contextSymbols = array( - 0 => array( - 0 => array( - '=' - ), - // name (should names have / in them like normal contexts? YES - 1 => $CONTEXT . '/sym', - // style - 2 => 'color:#008000;' - ) -); - -?> -- cgit v1.2.3