Google Groups – How to Insert Code Sample

google-groups

I'd like to add the following code sample to Google Groups:

<html>
    <script type = "text/javascript">
        var async = require("async");
    </script>
    <body>
    </body>
</html>

How can I insert source code into Google groups like this?

Best Answer

Direct copy+paste will work, but if you want to make it look like code you'll have to

  • Indent the code using the indent button
  • Select the code block and change the font
  • Select the code block & apply relevant colour.

enter image description here

All these should be possible from the Web UI