diff options
Diffstat (limited to 'demos/quickstart/protected/controls/Highlighter')
-rw-r--r-- | demos/quickstart/protected/controls/Highlighter/geshi/prado.php | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/demos/quickstart/protected/controls/Highlighter/geshi/prado.php b/demos/quickstart/protected/controls/Highlighter/geshi/prado.php index 95759a87..c9d96a35 100644 --- a/demos/quickstart/protected/controls/Highlighter/geshi/prado.php +++ b/demos/quickstart/protected/controls/Highlighter/geshi/prado.php @@ -100,26 +100,33 @@ $language_data = array ( ), 'REGEXPS' => array( 0 => array( - GESHI_SEARCH => '((<)(com:)([a-z0-9\\\.]+)(\s*))', - GESHI_REPLACE => '\\2<a class="api" href="link_to_api?\\4">\\3\\4</a>\\5', + GESHI_SEARCH => '<(com:[a-z0-9\\\.]+)', + GESHI_REPLACE => '\\1', GESHI_MODIFIERS => 'i', - GESHI_BEFORE => '', + GESHI_BEFORE => '<', GESHI_AFTER => '' ), 1 => array( - GESHI_SEARCH => '(</com:[a-z0-9\-]+\s*>)', + GESHI_SEARCH => '</(com:[a-z0-9\-]+)', GESHI_REPLACE => '\\1', GESHI_MODIFIERS => 'i', - GESHI_BEFORE => '', + GESHI_BEFORE => '</', GESHI_AFTER => '' ), 2 => array( - GESHI_SEARCH => '(</?prop:?([a-z0-9_]+)>)', + GESHI_SEARCH => '(</?)(prop:[a-z0-9_]+>)', + GESHI_REPLACE => '\\2', + GESHI_MODIFIERS => 'i', + GESHI_BEFORE => '\\1', + GESHI_AFTER => '' + ), + 3 => array( + GESHI_SEARCH => '((/)?>)', GESHI_REPLACE => '\\1', GESHI_MODIFIERS => 'i', GESHI_BEFORE => '', GESHI_AFTER => '' - ), + ) ), 'STRICT_MODE_APPLIES' => GESHI_ALWAYS, 'SCRIPT_DELIMITERS' => array( |