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.


1 Answer 1


From http://www.sitepoint.com/embed-jsfiddle-code-web-pages/

1. Go to jsfiddle.net and create your snippet
2. Navigate to Menu > Share > Embed Code (embeds in an iFrame).
3. Copy the iFrame code into your webpage HTML

  • Thank you for the reply ... I checked jsfiddle.net as per your answer. But it shows only HTML , JS and CSS . I need something for C++ or Java Jan 16, 2016 at 14:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.