Streaming live at 10am (PST)

Source code in Blog Post Rich Text


#1

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?


#2

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

http://www.w3schools.com/tags/tag_pre.asp


#3