Stack Overflow is implementing a new feature whereby the question (and answers) can contain runnable code snippets:
Feedback requested: Runnable code snippets in questions and answers
Today we're proposing a new feature to the Meta Stack Overflow community: Stack Snippets.
What do Stack Snippets do?
Stack Snippets make code blocks runnable.
What's supported?
Stack Snippets work for both questions and answers. The currently supported languages are:
- HTML
- CSS
- JavaScript
The intention appears to be that in future other languages will be supported as well.
Would Code Review benefit from this feature? Should we request to have it included here too?