What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 150 Stack Exchange communities.

Possible Duplicate:
Custom jsFiddle for StackOverflow

It will be easy to understand the questions and answers, if we are able to provide a working example in Stack Overflow itself. Take these tools for example,

  1. jsfiddle
  2. Try it yourself of w3 schools

This will decrease the misunderstanding of the code.

share|improve this question

marked as duplicate by Pëkka, Cody Gray, Mat, BoltClock's a Unicorn Mar 3 '12 at 10:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

This would only be possible with web development questions and more precisely client-side technologies. Languages that need to be compiled or server side technologies would be left out and possibly offended by the exclusion... Now we wouldn't want that now would we? - A C# compiler sobbing in the corner? – Lix Mar 3 '12 at 10:05
Well, I read this as "integrate something like JSFiddle into SO", which is a fair request. (It's been asked before though.) – Pëkka Mar 3 '12 at 10:07
But if there is a feature like that in SO, the usage will come automatically. Currently lot of people are posting there codes as just codes in answers, if there were such a feture, it could be communicated more effectively. – Sarin Jacob Sunny Mar 3 '12 at 10:09
We want the code posted in the question. If you also want to provide an external link to a demo, that's fine. But that's completely optional. Including the code in the text of your question is mandatory. – Cody Gray Mar 3 '12 at 10:27

1 Answer 1

Whilst this is a valid request and quite a few people could benefit from it I believe that It wold be a massive undertaking and that the sheer number and variation of questions here would make it not feasible.

There would still be so many questions dealing with a language or some library that would be unlikely to be implemented into such a "code preview" feature.

What you might consider doing, if you come across a user or a question that could benefit from such a feature, is

  • comment on the post bringing to the OP's attention the existence of such tools.
  • suggest to them the possibility to post some sample (working) code using the aforementioned tools.

As was said in the comments above, It is desirable to have the "raw" code snippet in the body of the question itself - This allows users who are attempting to answer the question to quickly see the code that is being used and possibly spot the issue immediately - sometimes all you need is another pair of eyes to spot the semi-colon you are missing :P
Users also sometimes are deterred from questions requiring them to navigate away from the site in order to simple understand the question.

So - even if you do suggest to someone to use the online code previewing solutions you should also recommend to them to include some (if not all) their code in the body of their question.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged .