How to format [code] ouptut on text element?

Hello,

We’re using the [code] BBcode in comments on one of our apps. We would like to improve the style of the output of this BBcode on the text element. (Right now it shows only a different font).

What’s the correct way to do that?