When you use the Google Groups editor to enter a message, the last button on the toolbar is "{ }"
Enter or paste your code snippet as normal text, then select it and press that button.
Note: GoogleGroups has an annoying habit of adding extra newlines to the code-formatted content, but you can edit those out after using the "{ }" button.
enjoy,
-e