Code wrapper?


I’m looking for a way to implement the same style that is used on the forums for the code /code tags.

I’m not sure what the name is so im having problems finding it online.

Any help would be appreciated. thanks.

The easiest way is to parse out the [code] bbtags using regex and replace them with <pre> tags.

If you want the syntax color coded, there’s the PEAR package Text_Highlighter and I’m sure there’s other packages with similar names. Maybe some use “hilite”.