Formatting Code Snippets in Web Edition

I wish to display formatted PHP code snippets in either a WebTextArea or a WebHTMLViewer.

Nothing special, just <?php , ?> tags in red, colored comments etc.

Styled text seems a very tedious path (due to the number of snippets in play).

Does anyone have any suggestions on best practice?

Kind regards, Andrew