It depends if the code is HTML or Java? Java won't show up on a rich text widget, and I don't believe cafemom has added a java- supporting widget yet. Try to search a new code for an HTML item that you can add.
However if it's in HTML here is what I do when I insert the HTML code. I hit "save" on the rich text widget (it will still show as code on your page).. then go back to the widget and click "edit". When the widget loads for you to edit it.. the correct item will load up. :)
at 8:07 PM on Jun. 18, 2008