Stack Snippets are runnable inline code samples (currently HTML, CSS, and JavaScript are supported, but more languages are apparently on the roadmap). Use this tag for bug reports, feature requests, and discussions explicitly relevant to these snippets and their underlying technologies.

learn more… | top users | synonyms

0
votes
0answers
39 views

Make Stack Snippets more visible and encourage their use

A lot of people (especially new users) don't know about this feature. It would help us a lot if the OP would use the snippet in his question. Answering time can be radically reduced. Now, I see that ...
6
votes
0answers
82 views

Add a “run” option next to “show” for hidden snippets

Title pretty much says it. My current choices are either to show the snippet and have a run button, or to hide it and not have a run button. Sometimes, you're just changing a single line of code but ...
18
votes
0answers
86 views

Stack snippets full page view _always_ shows scrollbars

Here is an example: <h1>This is the only element on the page</h1> When you open a code snippet in full page view you will notice that the vertical scrollbar is there even ...
15
votes
0answers
291 views

Warning if using jQuery in snippet and jQuery not tagged/used in question

If when answering a question, if the answerer chooses jQuery in the Stack Snippet editor but jQuery is neither tagged on the question nor mentioned in the question text, I'd like to see it show a ...
17
votes
0answers
179 views

Automatically select jQuery in snippet editor if tagged with jQuery

Would like to see the following logic added to the really cool (!) Stack Snippets feature: if the question is tagged jquery (when creating a snippet in an answer): If a specific jQuery version is ...
14
votes
1answer
377 views

People turning regular code blocks in others' question into snippets

I came across the following edit: http://stackoverflow.com/revisions/25922292/2 The editor made the code block a stack snippet, but in this case, the code is writing to the console, which doesn't ...
-5
votes
0answers
103 views

External resource links included in Stack Snippets?

I just used a stack-snippet on a question related to Twitter Bootstrap, so I included the external stylesheet for Bootstrap. I noticed that this stylesheet link is then included as a line in my ...
68
votes
6answers
890 views

Stack Snippets being misused

Not long after the general introduction of Stack Snippets, there are already some posts that use them wrong. Today I came across a question with a stack-snippet containing CasperJS code which is ...
11
votes
1answer
87 views

First Posts Review Queue doesn't show Code Snippet

In the First Posts Review Queue, I came across this answer: When you right click the question and open it in a new tab, this is what it looks like outside of the Review Queue: The version ...
18
votes
1answer
445 views

Should we edit our old posts to include Stack Snippets?

Obviously only our posts which include HTML, CSS, and/or JavaScript, and that would perhaps benefit by having this feature in the post itself. What does Stack Exchange Inc. think? What do the ...
25
votes
1answer
345 views

Stack Snippet retcon

Is it considered a valid edit to replace links to JSFiddle or similar sites with new Stack Snippets? If the answer is "sometimes," what makes it valid or not?
119
votes
18answers
3k views

Feedback requested: Stack Snippets 2.0

Thanks to the incredibly positive reception and great feedback on our announcement of Stack Snippets, today we've shipped version 2.0. Don't know what Stack Snippets are? Just read the link above for ...
-6
votes
2answers
242 views

Is there a better name for Stack Snippets? [on hold]

You'll all be aware of the following posts no doubt: Feedback requested: Runnable code snippets in questions and answers Stack Snippets Sandbox - Try It Out Here! I'm not a massive fan of the name ...
125
votes
64answers
5k views

Stack Snippets Sandbox - Try It Out Here!

This post is dedicated to testing out the newly announced Stack Snippets feature. Feel free to answer with your own Stack Snippets, and have some fun!
576
votes
49answers
8k views

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. Here's an example: alert("You can ...