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.
148 questions
5
votes
0
answers
85
views
Stack Snippets not working
Today, I edited at this question, and when I tested it, it said "stacksnippets.net refused to connect". This is what happens when the X-Frame-Options HTTP header is not configured for ...
7
votes
0
answers
130
views
Stack Snippets console may drop excess log arguments
Given this one-liner:
console.log('%s', "", "where did my string go?");
Stack Snippets shows an empty message. Every other console implementation appends all arguments not paired with a format ...
26
votes
0
answers
185
views
Stack Snippet Copy button gets mistaken for Copy to clipboard
The Copy button right below an inlined Stack Snippet is confusing.
A significant percentage of plagiarism flags on Stack Overflow are on posts that contain nothing more than a Stack Snippet copied ...
2
votes
1
answer
164
views
Stackoverflow.com code snippet showing a series of "[object Object]"
In the last few days I cannot see any code snippet but I see a series of [object Object] instead. Is this a personal issue or a general?
This is a sample preview:
This is the link to the Q/A:
Can I ...
17
votes
1
answer
245
views
New snippet viewer: Please allow to hide the code, give a sizer or at least make the main container as tall as possible
In question
Relative/absolute positinging for html email in Outlook
the main issue the the floating div, which moves below the image if the view-port is large enough.
The issue is impossible to view ...
4
votes
0
answers
118
views
Stack Snippet console.warn can’t log Error objects (or other non-string, non-array objects passed as the first argument)
This Snippet should log two warnings:
(async () => {
console.warn(new Error("blah"));
})();
console.warn(new Error("blah"));
but it actually logs one error:
Error: {
"message": &...
5
votes
0
answers
105
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
>
> if (...
6
votes
0
answers
180
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 ...
3
votes
0
answers
170
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
141
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. ...
15
votes
0
answers
236
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
130
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
318
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
182
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 ...
24
votes
1
answer
495
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?