use < and > instead of < and >. So if you needed to show something like
<?php
do something do something else do something do something do something do something
?>
you would use
<?php
do something do something else do something do something do something do something
?>
Another way would be to put the code into a textarea
Basically I have some code written in PHP that I wish to be viewed by visitors to my site. It's sort of a tutorial. Only currently the only way I know how to let the code be shown without formatting is by using the <pre></pre> tags. I just wanted to know if there was a way to wrap the text automatically if it extended beyond a certain length (in pixels).
Thanks,
Angelo

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic