Unanswered Questions
165 questions with no upvoted or accepted answers
9
votes
0
answers
78
views
Embedding stack snippets inside codeblock
I noticed earlier on today that a snippet can be embedded inside a codeblock, resulting in a buggy rendering:
Or, with an actual snippet:
//And JS too!
/*
* And some CSS
*/
...
9
votes
0
answers
212
views
Stack Snippet vs Code Snippet - Inconsistent naming
Following is the tooltip for stack-snippets :
Stack Overflow:
Meta Stack Overflow
Meta Stack Exchange
Why do we generally call it stack-snippets, but the tooltip reads code snippet..?
...
9
votes
0
answers
71
views
Flow for using Stack Snippets in comments
It can be very useful to use a snippet when asking for clarification in a comment. For example in this question I posted such a comment:
There's something else going on in your styles. The code as ...
8
votes
0
answers
70
views
SO survey keyboard navigation
I am on the page How did you learn to code? Select all that apply. in the 2022 Stack Overflow Developer survey. The page uses custom "checkbox" form elements and visually hidden inputs. That ...
8
votes
0
answers
72
views
Can we add support for React 16.8 (or latest) in Stack Snippets?
Currently Stack Snippets supports up to 16.6.3. It will be great to add the support for 16.8 as this is a major release because of React hooks support.
Now the alternative is each time manually add ...
8
votes
0
answers
148
views
Snippet controls appear twice after completing a review
TL;DR:
Reproduction steps:
Find a post with a pending suggested edit to add a snippet; in my case, I handled the review from the "edit (1)" link rather than through /review.
Switch to "rendered ...
8
votes
0
answers
267
views
I cannot edit snippet when improving edits
As said in the title, when I find a pending edit and I try to improve it I cannot edit the snippet inside:
I don't know if it was always the case but I am pretty sure I was able to do this before....
8
votes
0
answers
217
views
Why can't I "Full page" a js/html/css snippet in a new tab?
At the bottom of javascript/html/css code snippets, when clicking Full page, the current page is simply replaced with the full screen result of the snippet; and no way to get back to the post.
...
8
votes
0
answers
294
views
Snippet console logging JavaScript exception as empty object when using .log
When a JavaScript exception is caught in a snippet and the exception is output using console.log, it appears as an empty object.
Example:
try {
let foo = null;
foo.bar;
} catch(exception) ...
8
votes
0
answers
90
views
In the revision view the code snippet runs old code
In case someone posts a bad snippet and he or someone else fixes the code, the snippet runner in the revision view will play the old code.
Basically it will run the red and stroked code anyway. This ...
7
votes
0
answers
89
views
Stack snippets external file validation needs to be fixed
I went to edit a question that was linking to Google Fonts with http://fonts.googleapis.com/css?family=Poppins:400,300,500,600,700 and when clicking the "Add an external library" the snippet ...
7
votes
0
answers
285
views
Using CKEditor in a code snippet results in an error
Was trying to write a snippet to demonstrate something with ckeditor today and encountered this message:
{
"message": "SecurityError: Permission denied to access property \"document\" on cross-...
7
votes
0
answers
167
views
Correct Line Numbers for error messages in snippets
I try to write a working snippet in as many answers as possible. I find one of the hardest parts is tracking down bugs because the console messages show line numbers that don't match the snippet ...
7
votes
0
answers
59
views
Stack snippet indentation - preview differs from result
Today I encountered a code snippet whose preview renders fine during editing but with unwanted indentation after submitting:
arr1 = [{
Title: "xXx: Return of Xander Cage",
...
7
votes
0
answers
58
views
Add Stack Snippet (Code Snippet) Documentation to Help Center and/or Editing Help
I saw the new code snippet feature on the site and wanted to create one in an answer, but didn't see how. I expected to find the answer in the Editing Help, but didn't, so I went to the Help Center ...