Questions tagged [stack-snippets]
Stack Snippets are runnable code sandboxes of the front-end languages HTML, CSS, and JS for use within a Stack Exchange post. Use this tag for bug reports, feature requests, and discussions explicitly relevant to these snippets and their underlying technologies.
473
questions
10
votes
0
answers
36
views
Easily switch between stack snippet view and question view
I love stack snippets. But the problem with stack snippets is that if I am working on the snippet, I can't see the question I'm answering.
Currently there are two options for referring back to the ...
3
votes
0
answers
37
views
Duplicate Stack Snippets from my own answer to my own answer
Periodically, in questions, we'll answer a question that was asked, giving the solution that was asked for, by the person posting the question, but which is (in our (not necessarily so) humble opinion)...
1
vote
1
answer
106
views
Why am I able to fork other answers' snippets?
My answer here uses a snippet. Other answers on the same question do, as well. Every snippet -- in question or answer -- shows Run code snippet and Copy snippet to answer.
Isn't it a bad idea to ...
85
votes
2
answers
2k
views
Allow to hide sections of Stack Snippets
I just answered a question about a JavaScript issue, and wanted to provide a runnable snippet with a complete demo based on the asker's code.
The problem lies in the fact that the CSS is irrelevant ...
9
votes
0
answers
83
views
Back button when viewing full-page snippet
When viewing a snippet in "Full page" mode it would be nice if you could use the browser's "Back" button to close it.
Additionally it would be nice if the iframe running the snippet was created in a ...
17
votes
1
answer
241
views
Hidden Stack Snippets gets the code formatting when inserted next to code
If you insert a stack snippet next to a code block, it gets the formatting of code.
Example:
font-family: tahoma, verdana, ubuntu, 'sans serif';
* {
font-family: tahoma, verdana, ubuntu, 'sans ...
10
votes
0
answers
682
views
Emmet in StackSnippets™
I think it would be a very nice addition to the StackSnippets™ to have Emmet implemented in the editor.
This is NOT an HTML/CSS replacement, it's a productivity tool meant to help you write ...
64
votes
1
answer
583
views
StackSnippet display parsed HTML entities
If the code block contains HTML entities then those are parsed and displayed instead of displaying the plain value.
The below code block contains � as the input value, but instead of ...
8
votes
0
answers
104
views
Run Code Snippet focuses on textarea after "copy to answer" [duplicate]
When you use the "Copy snippet to answer" functionality on a code snippet and click the "Run code snippet" while still in edit mode, the answer textarea gets focus and the page is scrolled up to it ...
4
votes
0
answers
127
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 ...
15
votes
0
answers
274
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 ...
47
votes
2
answers
517
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 though ...
26
votes
3
answers
617
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 ...
20
votes
1
answer
696
views
People turning regular code blocks in others' question into snippets
I came across the following edit: https://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 ...
166
votes
10
answers
3k
views
Stack Snippets being misused
Not long after the general introduction of Stack Snippets, there are already some posts that use them wrongly.
Today I came across a question with a stack-snippet containing CasperJS code which is ...
12
votes
1
answer
123
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 inside the ...
14
votes
0
answers
121
views
Consider changing StackSnippets icon image
It just doesn't seem to match the rest of the icons in the editor:
It almost looks like an icon that was created a decade ago. Could we use something more that signifies a script...Something more ...
24
votes
1
answer
659
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 ...
28
votes
1
answer
459
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?
137
votes
22
answers
5k
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
1
answer
554
views
Is there a better name for Stack Snippets?
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 ...
233
votes
106
answers
16k
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!
792
votes
53
answers
22k
views
Feedback requested: Runnable code snippets in questions and answers
Today we're proposing a new feature to the Stack Overflow community: Stack Snippets.
What do Stack Snippets do?
Stack Snippets make code blocks runnable. Here's an example:
alert("You can even do ...