-
Hi,
For my website, I would like to know how to to the things vbulletin does as in:
[CODE ] Text [/CODE ]
and
[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?
Peter
-
Non-Member

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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks