Pokusao sam da napravim bb code za forum, (php code highlighter).
$MsgTEXT2z = preg_replace('#\[php(?:=(?:"|)?(.{1,50})(?:"|))?](.+?)\[/php]#eis', 'highlight_string(\'$1\')', $MsgTEXT2z);
mada ne ide.
U cemu je problem?
|
bb code i highlight string |
|
|
| ||||||||||
|
|