I want to coach other people on how to write code and want to maintain a google site which will have snippets of code. How can I include sections like the ones on this stackoverflow community into my google site?
This nice formatting that stackoverflow uses is called markdown. Google sites does not appear to have support for it, so I'd suggest using something like Wordpress, which tends to be more flexible.
There is this 2-year-old project which claims to support markdown in Google Sites, if you're stuck using that.