Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
23 votes
1 answer
451 views

Who sniped the snippet?

I am trying to ask a question on Stack Overflow but the code snippet button is missing for some reason. Expecting this Currently Available How can I bring back the code snippet?
smpa01's user avatar
  • 333
22 votes
2 answers
190 views

After the move to Denver Stacksnippets.net is offline

After the move of all services to Denver it was tweeted that there was some performance degradation. Initial reports showed that at least chat search seemded to be the victim of that. I would like to ...
rene's user avatar
  • 92k
17 votes
1 answer
144 views

Ejecutar (Run) button background is the same color of the button text: white

This is related to Submit buttons change color when hovering on non-English Stack Overflow sites, but in this case it's a problem because the button background is the same color as the button text: ...
Rubén's user avatar
  • 16k
16 votes
1 answer
465 views

Code snippet link text conflicts with underline in Firefox

On my browser, the Show code snippet link for the code snippet alert("This is some example code"); renders as follows: It looks like the line and the text are in separate elements, allowing ...
janw's user avatar
  • 2,433
15 votes
2 answers
297 views

Snippets editor won't insert and close on SO

This just started: I went to add a snippet to an answer on SO, typed it in, clicked the Insert button, and...nothing. No error in the console, but nothing inserted in the question. Earlier today they ...
T.J. Crowder's user avatar
15 votes
1 answer
125 views

Stacksnippets has the incorrect SSL certificate :(

As discussed here, was prompted to post it as a brand new question, so here it is :-). Earlier today there was an issue with Stack Snippets, caused by the move to Denver. That issue was fixed, but ...
AStopher's user avatar
  • 589
14 votes
0 answers
198 views

Snippet button missing on Staging Ground question creation

I've been wondering why there is no 'create snippet' button when asking a question on Stack Overflow! I found this meta post asking where it was 7 months ago and staff mentioned that it was being ...
Zach Jensz's user avatar
13 votes
2 answers
113 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, ...
nhinkle's user avatar
  • 12.1k
12 votes
1 answer
168 views

Editor in "Ask Question" page has two snippet icons

There are two snippet icons displayed in the question's body Markdown editing tool. Clicking on both icons opens the snippet section. I am able to reproduce this on Meta Stack Exchange and Stack ...
Arulkumar's user avatar
  • 39k
12 votes
1 answer
152 views

Clicking to reload an updated answer removes the code snippet buttons and removes syntax highlighting

If you are looking at an answer with a code snippet in it, and the answerer updates the answer, you see An edit has been made (etc.). If you click that, the answer is refreshed, but the code snippet ...
Peter B's user avatar
  • 451
11 votes
1 answer
132 views

Is there something wrong with the snippets?

I posted a question on Code Review. It did not meet the standards and was closed. I asked the same question on Stack Overflow. While the code in Code Review produces error, the code in Stack Overflow ...
SK-the-Learner's user avatar
11 votes
2 answers
2k views

"Run code Snippet" gives Uncaught SecurityError

I have given an answer on Stack Overflow and it is working on jsfiddle plus my local machine but people are complaining that that it doesn't work (gives any output) to them. So I tried to check it ...
A.B's user avatar
  • 411
11 votes
1 answer
91 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 ...
Nzall's user avatar
  • 3,242
11 votes
1 answer
182 views

New code snippet causes error on submit?

StackOverflow's editor seem to have changed, or to be more precise, the settings for the snippet editor that allow to run code in questions/answers have changed. The snippets are now executed in a ...
Alvaro Montoro's user avatar
11 votes
0 answers
190 views

Code snippet comments in code formatting break the formatting of the post

When special HTML comments used for snippets are present in a post, these comments break the rendering of the post. For example, consider the following markdown code (notice that the whole thing is ...
Donald Duck's user avatar
  • 7,877
9 votes
1 answer
118 views

Snippet editor window closes even when the closing confirmation dialog is cancelled

Steps do reproduce the problem When you are answering some question... Click on the Code Snippet button or press CTRL+M Click on the X at the corner or press ESC to close the window Choose OK to ...
utluiz's user avatar
  • 193
9 votes
2 answers
251 views

500 Internal server error in stacksnippets.net

Go to http://stacksnippets.net/ or click "Run code snippet" in a stack snippet. ​ It says 500 - Internal server error. There is a problem with the resource you are looking for, and ...
Oriol's user avatar
  • 1,423
9 votes
0 answers
93 views

JavaScript code snippet Tidy function injects a separating space into the null coalesce operator

For JavaScript snippets, the Tidy feature injects a space between the question marks that compose the nullish coalescing operator ??[1]. Example: Prior to Tidy: console.log(((a, b) => { return a ?...
RamblinRose's user avatar
9 votes
0 answers
81 views

I cannot type certain special characters in the snippet editor

When using the snippet editor, I cannot type the following characters: : (deletes the next word instead) = (moves cursor forward a word instead) I assume this is because the snippet editor uses ...
flyx's user avatar
  • 239
8 votes
1 answer
217 views

Snippets can be formatted in monospace

Example answer with bug. By indenting the snippet generating comments, you can make a pretty odd snippet style, where the button titles are shown in a monospaced font. let test = "Hello, world!";...
David Wheatley's user avatar
8 votes
0 answers
93 views

A small problem when using "Tidy" to format JS in the "Code Sandbox" if the code uses "dynamic import"

When creating an answer to the question, I drew attention to the incorrect formatting of the JS code via "Tidy" in "Code Snippet" when using "dynamic import" in the code. ...
Oleg Barabanov's user avatar
8 votes
0 answers
73 views

Really long text exposes stack snippet bug

I was just editing a question on Stack Overflow that included an over abundance of lorem ipsum and found a bug in the Stack Snippet tool... If you dump 2 long lines, like really obnoxiously long lines,...
apaul's user avatar
  • 20.2k
7 votes
1 answer
243 views

Why is there a script error in all Stack Snippets?

I am not sure whether this has been asked before or not, or if anyone else has this problem. I get this "script error" everytime I execute any script in the code snippet tool of Stack Overflow. I have ...
Anupam's user avatar
  • 219
7 votes
1 answer
66 views

Typo in Stack Snippets: "Javascript" should be "JavaScript"

That's not a pluralization bug, so I shouldn't expect Jeff coming to my house with a giant "S", right?
Michał Perłakowski's user avatar
7 votes
0 answers
119 views

Stack Snippet is not supported on mobile devices - time to reconsider it

There have been a couple of cases when I wanted to write an answer on my iPhone and ran into non-working stack snippets editor, only to be greeted with magnificent error: not supported on mobile. Well,...
nicael's user avatar
  • 34.7k
7 votes
0 answers
74 views

Snippet CSS content is corrupting the console display

I have encountered a bug in the Stack Overflow snippet interface. I have created a div and wrote some css in the CSS section for the same. I noticed that the div CSS content is affecting the console ...
Bhuwan's user avatar
  • 209
7 votes
0 answers
48 views

JavaScript snippet containing multiple dollar signs is corrupted [duplicate]

As part of https://codegolf.meta.stackexchange.com/a/7848/163, I posted a stack snippet that uses jQuery and ran into a problem. Take for example the following snippet: !-- begin snippet: js hide: ...
PleaseStand's user avatar
  • 1,192
6 votes
0 answers
129 views

Stack Snippets console message formatting fails at interpreting a doubled percent sign

Both of the lines below, using the console message formatting syntax, are supposed to print "%" to the console twice, and they indeed do in the native developer consoles of Chromium, Firefox ...
user3840170's user avatar
  • 4,323
6 votes
0 answers
69 views

Indenting interactive interpreter invokes interesting interactions [duplicate]

Stack Snippets still attempt to be rendered when indented or within code fences. This behaviour was first observed "in the wild" on this (now deleted) answer on Stack Overflow and in ...
Henry Ecker's user avatar
  • 5,000
6 votes
0 answers
90 views

Inline diff view in revision history breaks runnable code snippets

When viewing the inline diff view in the revision history of a post, pressing the "Run code snippet" button tries to concatenate both revisions:
Kaustubh Badrike's user avatar
6 votes
0 answers
130 views

Can't run Stack code Snippets on the mobile site

Is it a known issue that stack snippets don't have the "Run code snippet" button underneath on the mobile version of the site? Searching for this yielded nothing, both on MSE and MSO. I've posted a ...
Dan Dascalescu's user avatar
6 votes
1 answer
63 views

Snippet body is partially clipped/obscured in the snippet editor [closed]

Stack Snippets on SO apparently got some CSS changes (at least), which unfortunately cause part of the snippet body to be clipped/obscured in the snippet editor, at least on Chrome (v51.0.2704.79 on ...
T.J. Crowder's user avatar
5 votes
1 answer
135 views

How do I force Stack Snippets to render as a code block?

Usually, posting blocks of code on Stack Exchange websites is very simple: You can indent everything by 4 spaces. Both lines are indented by 4 spaces. or ``` You can start and end the code ...
Toothpick Anemone's user avatar
5 votes
0 answers
81 views

Indented Stack Snippets don’t render well

This Markdown: - foo if (Math.random() < 0.5) { console.log("hello, world!"); } else { console.log("goodbye, cruel world!"); } Renders as: foo > > ...
user3840170's user avatar
  • 4,323
5 votes
0 answers
51 views

Links overlap on snippets

With certain screen widths, the “Hide results” and “Full page” links on snippets overlap (e.g. here, you need to run the code snippet to repro) Using a smaller or bigger width makes the page ...
αλεχολυτ's user avatar
5 votes
0 answers
50 views

Make the page non-scrollable when editing a stack snippet

When editing in the Stack Snippet editor the page is still scroll-able. In my opinion it would be more user-friendly and more normal from an UX standpoint if the body would get an overflow:hidden when ...
Spokey's user avatar
  • 183
4 votes
0 answers
144 views

Appearance of HTML and CSS snippet is changing when it is indented

Today I was editing this question to change the formatting of its code into a runnable snippet. Once I configured the snippet, Stack Overflow would not let me submit my question because it thought ...
aplua's user avatar
  • 45
4 votes
0 answers
50 views

Snippets in nested list items break nesting in post preview

Similar to "Why aren't runnable code snippets formatted correctly within lists?" (which appears to be resolved), when a snippet is in an item in a nested markdown list, it breaks the nesting....
outis's user avatar
  • 172
4 votes
0 answers
120 views

If you run a code snippet, a hat still appears (hats are above snippets in the Z-order) [duplicate]

If you run a code snippet, a hat still appears. Steps to repro: Go to a question where there is a snippet and where the OP wear a hat well, if you find that hard, just go here. rowspan not changing ...
ppwater's user avatar
  • 606
4 votes
0 answers
39 views

Increase min-height on SE code snippets to prevent scrollbar from blocking code [duplicate]

When using Stack Exchange/Stack Overflow, anytime there's a one-line code snippet with a horizontal scrollbar, the majority of the code becomes covered. I am using Chrome v72.0.3626.109. Looks ...
Tim Wheeler's user avatar
4 votes
0 answers
123 views

Vertical scroll bar overlaps top static bar

In attached image, Vertical scrollbar just overlaps when code snippets is too big and am scrolling up on code snippet area that time vertical scroll will overlap to top static bar.
Sakshi's user avatar
  • 141
4 votes
0 answers
76 views

Snippet editor for touch devices can be opened if you show perseverance

Opening a code snippet editor via the button from the toolbar cannot be used on touch screen devices like my iPad, i.e. I see the following notice: But occasionally tapping code snippet button ...
αλεχολυτ's user avatar
4 votes
0 answers
66 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 ...
Raidri's user avatar
  • 846
3 votes
1 answer
54 views

While undeleting deleted answer, the snippet seems missing

Yesterday I made an answer to this question Why does width and height affect how a flex item is rendered?. I got some downvotes and so I decided to check am I missed something. I temporarily deleted ...
Optimus Prime's user avatar
3 votes
1 answer
40 views

Closing the Stack Snippet editor doesn't refocus the textarea

To reproduce: Click Ask Question and focus the question body textarea Press Ctrl + M Hit the X and confirm that you do not want to "abandon any changes." Immediately press Ctrl + M again. No snippet ...
Mooseman's user avatar
  • 13.7k
3 votes
1 answer
302 views

NoScript XSS protection for code snippets

The feature: The text editor allows code snippets to be submitted as a sandbox like JSFiddle. I'm referring to the button that reads: JavaScript/HTML/CSS snippet Ctrl-M ...rather than: Code ...
Clarus Dignus's user avatar
3 votes
1 answer
83 views

Getting JS Error while clicking Copy Snippet to answer

To answer this question, I hit "Copy Snippet To Answer" button. But nothing happened. So that I checked my console and found below error. I did hard refresh and checked for the same, still getting ...
Vidhyut Pandya's user avatar
3 votes
1 answer
61 views

Broken view after expanding a snippet

Find a post with Stack Snippet (HTML/CSS/JavaScript) and go for "Expand snippet", for example this one. I got this strange view on Chrome 70 (Windows 10):
iBug says Reinstate Monica's user avatar
3 votes
1 answer
92 views

Stack Snippet editor doesn't close with the background fade

While I was answering a question on Stack Overflow I wanted to insert a snippet... but then I changed my mind and pressed on the grayed out space near the snippet window (without releasing the mouse, ...
Spokey's user avatar
  • 183
3 votes
0 answers
157 views

The code snippet window sometimes doesn't close

The code snippet window sometimes doesn't close. Below is an example of this issue on SO with Chrome + Windows 10 when I was writing a question, which prevented me from continuing to write the ...
Franck Dernoncourt's user avatar