Changeset 70
- Timestamp:
- 03/04/09 16:36:10 (3 years ago)
- Files:
-
- 1 modified
-
branches/geshi_highlight/manifest.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/geshi_highlight/manifest.xml
r69 r70 38 38 ]]></hook> 39 39 40 <hook id="ps_p arse_message_post_censor"><![CDATA[40 <hook id="ps_preparse_bbcode_start"><![CDATA[ 41 41 $text = preg_replace('#\[code=([a-zA-Z0-9]+)\]#s', '[code]#%$1%#', $text); 42 ]]></hook> 43 44 <hook id="ps_preparse_bbcode_end"><![CDATA[ 45 $text = preg_replace('#\[code\]\#\%([a-zA-Z0-9]+)\%\##s', '[code=$1]', $text); 42 46 ]]></hook> 43 47 44 48 <hook id="ps_parse_message_pre_split"><![CDATA[ 45 $text = preg_replace_callback('#\[code \]\#\%([a-zA-Z0-9]+)\%\#(.*?)\[/code\]#su', 'geshi_syntax_highlight', $text);49 $text = preg_replace_callback('#\[code=([a-zA-Z0-9]+)\](.*?)\[/code\]#s', 'geshi_syntax_highlight', $text); 46 50 ]]></hook> 47 51