Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 2420979

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.

13 votes

Stack Snippets Sandbox - Try It Out Here!

Can I log you out? <iframe src="https://www.stackoverflow.com/users/logout"></iframe> <img src="https://www.stackoverflow.com/users/logout" />
794 votes
53 answers
23k 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 …
Haney's user avatar
  • 34.6k
237 votes
108 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!
139 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 …
Haney's user avatar
  • 34.6k
3 votes
Accepted

Hidden Stack Snippets gets the code formatting when inserted next to code

Thanks for bringing this to our attention. I've corrected the Markdown insertion of Stack Snippets so that they will be properly inserted as their own block (separated by white space above and below). …
Haney's user avatar
  • 34.6k
2 votes

Stack Snippets asking whether to abandon changes or not, when there are none

Thanks for pointing this out. Due to the way our external editor works, I have opted for the cheap fix of changing the wording to the following: Are you sure you want to abandon any changes? Thi …
Haney's user avatar
  • 34.6k
5 votes

Browser notifications API doesn't work in Stack snippet

Thanks for bringing this up. Stack Snippets uses HTML5 iframe sandboxing in order to remain secure and prevent malicious code from hurting our users. This sandboxing prevents such actions as window ac …
Haney's user avatar
  • 34.6k
7 votes

Code Snippet execution window returns Server Error

Sorry about this folks. We're doing some server upgrades this week (see: #SnowOps hashtag on Twitter) and we're pretty sure we accidentally took down the Stack Snippets server temporarily. The odd par …
Haney's user avatar
  • 34.6k
3 votes

JavaScript/HTML/CSS snippet is broken most of the times

Thanks for bringing this up. As you indicated that you're behind a corporate firewall, I highly suspect that it is the issue. I cannot reproduce this myself and there are no other widespread reports o …
Haney's user avatar
  • 34.6k
4 votes
Accepted

Bug in stack snippet?

Thanks for reporting this bug. It runs properly now! (Hard refresh for caching might be required). I have modified Stack Snippets to include the console in the <head> tag which alleviates DOM assumpti …
Haney's user avatar
  • 34.6k
3 votes
Accepted

Stack Snippets Returning Service Unavailable

Thanks for reporting this. A misconfiguration on our side meant that the Stack Snippets app was deployed but not started. We have started the app back up and http://stacksnippets.net is now responding …
Haney's user avatar
  • 34.6k
3 votes
Accepted

Stack Snippets full page view always shows scrollbars

Thank you for suggesting this change. I have checked in code that eliminates page scrolling when Stack Snippets are viewed in full screen. I chose this approach over a "pop-up" style approach because …
Haney's user avatar
  • 34.6k
4 votes

Should "Run Snippet" option have a reputation requirement? (To prevent... user stupidity and...

Thanks for bringing this up. GolezTrol's answer sums up our team's thoughts on the matter nicely. It's one of those, "build a better mousetrap and they'll build a better mouse" things. Alexander's a …
Haney's user avatar
  • 34.6k
3 votes
Accepted

StackSnippet display parsed HTML entities

Thank you for reporting this bug. I've fixed the issue and HTML entities will display and evaluate properly in the next production build. (meta: > rev 2014.9.23.2598, q&a: > rev 2014.9.23.1885).
Haney's user avatar
  • 34.6k
12 votes
Accepted

Are stack snippets down?

Yes, I broke it trying to change our build configuration. Sorry about this. Good news: I am now a manager so I will break things less often (but maybe people more often?).
Haney's user avatar
  • 34.6k

15 30 50 per page