RE: [PHP] Wrapping code inside [code]xxx[/code] tags.
| From: | Jay Blanchard | Date: | Mon, 06 Oct 2003 12:12:07 +0000 |
| Subject: | RE: [PHP] Wrapping code inside [code]xxx[/code] tags. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-165174@lists.php.net to get a copy of this message | ||
[snip]
I have on my site a part where users' can submit articles and no doubt
their
articles will contain code. Code is wrapped inside of [code] tags, i.e.
[code]<?php echo "hi"; ?>[/code]
[/snip]
A simple way would be to replace the [code] tags with <pre> tags for
display. Also Evolt.org does a nifty thing with code in iframes within
articles.