Topic: [php]BBcode[/php]
Hi,
I think you should add BBcode [php] [/php] to punbb, as it can highlight source code, eg php, javascript, etc.
just use the php function highlight_string to do that ![]()
Last edited by thuankkk (2009-01-21 07:31:10)
Unfortunately no one can be told what PunBB is - you have to see it for yourself.
You are not logged in. Please login or register.
Hi,
I think you should add BBcode [php] [/php] to punbb, as it can highlight source code, eg php, javascript, etc.
just use the php function highlight_string to do that ![]()
Last edited by thuankkk (2009-01-21 07:31:10)
$pattern[] = '#\[php\](.*?)\[/php\]#ms';
$replace[] = '<div class="codebox"><pre>[php]$1[/php]</pre></div>';
$pattern[] = '#\[php\](.*?)\[/php\]#e';
$replace[] = 'highlight_string(html_entity_decode(\'<?php'."\n\n".'$1'."\n\n".'?>\', ENT_COMPAT, \'UTF-8\'), true)';on line 706 of 'include/parser.php'.
on line 706 of 'include/parser.php'. ???
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 5 official extensions. Copyright © 2003–2009 PunBB.