Questions tagged [stack-snippets]
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.
141
questions
3
votes
0
answers
147
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 ...
12
votes
0
answers
110
views
Can the Stack Overflow code snippet facility be updated with newer library options?
In Stack Overflow, there's a useful facility for adding runnable code in HTML and JavaScript. There is a dropdown list on the left-hand side of the dialog which offers several third-party libraries. ...
13
votes
0
answers
188
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 ...
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,...
3
votes
0
answers
226
views
Add syntax highlighting support for Solidity
Recently, I have been active a lot on the Ethereum site. It got a recent design overhaul which shows that some progression is happening. Unfortunately, one of the main issues is that the Solidity code ...
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 ...
23
votes
1
answer
435
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?
4
votes
0
answers
141
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 ...
4
votes
0
answers
48
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....
14
votes
0
answers
180
views
Bump outdated React version code snippet
The Stack Snippet React version is outdated to such an extent that using a CDN link has become mandatory.
Stack Snippets provide React 16.6.3 as highest version.
However;
React 16.6 is a very old ...
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 ...
1
vote
0
answers
40
views
Quicker copying of code examples [duplicate]
There are some code snippets in answers that I want to take, but it is slightly inconvenient to select the whole thing. Could there be a button added next to every snippet that lets you copy the whole ...
8
votes
0
answers
89
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.
...
1
vote
0
answers
43
views
Alignment bug of Run Code Snippet buttons after approving suggested edit
I approved a suggested edit on this post by clicking the edit link directly on the post. After approving the edit it seems the "Run code snippet" buttons are vertically aligned in the diff ...
2
votes
0
answers
46
views
Stack Snippet console styles can be overriden [duplicate]
While editing a post I put the code into a runnable Stack Snippet and noticed that the styles affected the console:
console.log('good luck reading this when the console wrapper dimensions are ...