Changeset 69
- Timestamp:
- 03/04/09 16:08:26 (3 years ago)
- Files:
-
- 1 modified
-
branches/geshi_highlight/manifest.xml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/geshi_highlight/manifest.xml
r53 r69 4 4 <id>geshi_highlight</id> 5 5 <title>GeSHi Highlight</title> 6 <version>1.0. 3</version>6 <version>1.0.4</version> 7 7 <description>Highlights code tags in posts using GeSHi highlighter.</description> 8 8 <author>Daris</author> … … 38 38 ]]></hook> 39 39 40 <hook id="ps_parse_message_post_censor"><![CDATA[ 41 $text = preg_replace('#\[code=([a-zA-Z0-9]+)\]#s', '[code]#%$1%#', $text); 42 ]]></hook> 43 40 44 <hook id="ps_parse_message_pre_split"><![CDATA[ 41 $text = preg_replace_callback('#\[code =([^\[]+?)\](.*?)\[/code\]#s', 'geshi_syntax_highlight', $text);45 $text = preg_replace_callback('#\[code\]\#\%([a-zA-Z0-9]+)\%\#(.*?)\[/code\]#su', 'geshi_syntax_highlight', $text); 42 46 ]]></hook> 43 47