Yes, you can. If you pass the value of the custom field to a javascript, you can format it exactly the way you want.

The javascript function could be something like this:

[color=green]function colorMyText(val)
{