For my website, I would like to know how to to the things vbulletin does as in:
[CODE ] Text [/CODE ]
[PHP ] PHP code hereand syntax highlight (MUST) [/PHP ]
I wanna do the stuff so that none of the code within those tags are parse and so they are outputed in a different format, like vBulletin.
Can anyone help me here?
The [PHP ]....[/PHP] uses the highlight_string($foo) tag, where $foo contains PHP code. A simple regexp in your code would do it.
How would you make sure that the code isn't parsed?