Basically, I want to to something similar as to what mybb does in php, where they will output code between [code][/code] tags as highlighted text. Obviously I will need some reg
IMO, the easiest way would be to:
1) Read your text into a string
2) Optionally, run htmlspecialchars()
3a) echo() the string
3b) be sure to add <pre> and </pre> tags before and after the string
<pre>
</pre>