Source code in Blog Post Rich Text

I’m trying to figure out to embed source code in my blog posts. The post itself is using the Rich Text field type. I don’t see the ideal Markdown field type. If we had that I could do something like what we do here:

var i = 0;
i++;

Can somebody tell me how to embed source code in my blog posts?

The difficulty is to put code where you want, in RTs.
If you have 1 block of code per post you can use a custom code widget with the ‘pre’ tag, that will show a text field from the collection