I have started a blog on Blogger http://algorithmsolutions.blogspot.com/
Currently I'm posting code samples using Gist of GitHub.
Is there any way to show two windows in blog post, i.e., Code and Output, in which if any blog reader changes code in code area then it gets reflected automatically in the output area, just like the exercise window in courses of Khan Academy?
I need to post code snippets in C++ or Java.