in the last days, i have been tring to make a system with BBCODE.. i want to make the content of [mycode] and [/mycode], in color in php.
i want to make it in preg_replace(there is no another way..)
i write this code:
$content = preg_replace( "#\[mycode\](.+?)\[/mycode\]#is", "XXXXXXXXX", $content );
but i have no idea what to write in XXXXXXXXX...
how i use in highlight_string ??