From 48d7424647b146a66c5bde93ee836919933a4150 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 11 Dec 2009 01:16:01 +0100 Subject: added geshi syntax highlighter --- .../geshi/contexts/web3d/string_javascript.php | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 paste/include/geshi/contexts/web3d/string_javascript.php (limited to 'paste/include/geshi/contexts/web3d/string_javascript.php') diff --git a/paste/include/geshi/contexts/web3d/string_javascript.php b/paste/include/geshi/contexts/web3d/string_javascript.php new file mode 100644 index 0000000..cc7b84e --- /dev/null +++ b/paste/include/geshi/contexts/web3d/string_javascript.php @@ -0,0 +1,51 @@ + + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL + * @copyright (C) 2005 Nigel McNie + * @version 1.1.0 + * + */ + +$this->_contextDelimiters = array( + 0 => array( + // Why doesn't this work correctly? +// 0 => array('REGEX#[java|vrml|ecma]script:#'), + + // yet this works (three valid names for the same VRML scripting) + 0 => array('REGEX#javascript:#', 'REGEX#ecmascript:#', 'REGEX#vrmlscript:#'), + 1 => array('"'), + 2 => false + ) +); + +$this->_delimiterParseData = GESHI_CHILD_PARSE_LEFT; + +$this->_overridingChildContext = new GeSHiCodeContext('javascript'); + +?> -- cgit v1.2.3