Stack Snippets are runnable inline code samples. Currently HTML, CSS, and JavaScript are supported. Use this tag for bug reports, feature requests, and discussions explicitly relevant to these snippets and their underlying technologies.
2
votes
0answers
18 views
Make code snippets results window vertically resizable
Now that we have stack snippets, it would be cool if the results window could be resized the same way we can resize the edit textarea for asking/answering questions, e.g. with a grippie.
Here is an ...
2
votes
0answers
36 views
Clicking back button after entering full screen [duplicate]
I'm clicking Run code snipped, then Full page and then the back button in my browser. And now I get a white blank page with only Close button.
Expected results: the full screen should close and the ...
-2
votes
1answer
60 views
Add Bootstrap to available external libraries
I've used the stack snippets feature a couple of times today (and love it!) by answering a couple of Bootstrap questions. It would be useful to include Bootstrap as well as jQuery, D3 and AngularJs as ...
13
votes
1answer
130 views
How is my browser protected from XSS in Stack Snippets?
Firefox 32.0.2 with NoScript and AdBlockEdge.
Steps I have done to enable Stack Snippets:
Allowed scripts from http?://stacksnippets.net
In NoScript settings, went to XSS tab and added exceptions ...
4
votes
0answers
37 views
Browser back leaves page after going fullscreen in stack snippet
Opening a Stack Snippet in full screen should use history.pushState() to add an entry to the browser history stack. Clicking back will then close the snippet rather than leave the page completely.
12
votes
2answers
87 views
Stack Snippets are not shown properly in the review queue
Stack Snippets don't appear on posts in the review queue. Therefore, if a suggested edit adds/changes a snippet, there's no easy way for the reviewer to determine if the edit is valid. For an example, ...
8
votes
1answer
60 views
Hiding a stack snippet does not halt execution
example:
Using setInterval with requestAnimationFrame
If you start the first snippet, then press "Hide Results", the code continues to run in the background. This means that if it's something that ...
8
votes
1answer
140 views
On what sites are Stack Snippets enabled?
Stack Snippets is now a feature on some Stack Exchange sites. On what sites is this feature enabled? Where is it being discussed? And where has it actively been decided not to implement the feature? ...
2
votes
0answers
27 views
Stack snippets external library function reverses order
When adding external libraries to a stack snippet the <script> element is inserted before the already existing elements. So if you want to include a library which depends on another one you have ...
1
vote
0answers
35 views
Can I call out different parts of a snippet
I often format answers something like
Do this
var a = b * c;
Then do this
log("the answer is " + a);
Is it possible to pull those lines separately out of a snippet of say 10 lines to include in ...
4
votes
1answer
47 views
How do I select which lines of code to show and which lines to hide?
Sometimes only 10 lines of 100 are relevant to the question/answer, the other 90 are setup.
Is there a way to hide 90 those in lines in the answer?
26
votes
12answers
1k 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!