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 --- paste/include/geshi/contexts/html/html.php | 55 ++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 paste/include/geshi/contexts/html/html.php (limited to 'paste/include/geshi/contexts/html/html.php') diff --git a/paste/include/geshi/contexts/html/html.php b/paste/include/geshi/contexts/html/html.php new file mode 100644 index 0000000..2e9169d --- /dev/null +++ b/paste/include/geshi/contexts/html/html.php @@ -0,0 +1,55 @@ + + * @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) + ) + ) +); + +?> -- cgit v1.2.3