PHP ~ highlight_string

I’m trying to code up a bb code system with a code tag

that produces

[php]

<?php $code // that looks echo "like this"; if ("there is an easy way"); { return("to do this"); } ?>

[/php]

Please let me know?

I’ve tried using highlight_string($tutorial) (this is the string that will contain bb code, that if [*code] tags are present, will be parsed to teh php colour system. However this doesn’t work when I try it…it just echoes back actual script code as opposed to the intended string.

Thanks

are you looking for something like this http://www.devscripts.net/browse/2.php ?

I haven’t tested it yet but I’m thinking that that script will highlight the whole of the string, as opposed to just the code between the [*code] tags..unless I can modify my BB script?