Linked Questions
33 questions linked to/from I've been told to create a "runnable" example with "Stack Snippets". How do I do that?
-1
votes
2
answers
231
views
How do I add CSS libraries to my Stack Snippet? [duplicate]
When I asked the question I wanted to include a Stack Snippet, but the images, fonts and the Bootstrap grid were giving me issues, so I'm asking if there is a way that could be fixed.
This is what I'm ...
4
votes
0
answers
337
views
How can I include HTML and JavaScript code on Stack Overflow? [duplicate]
I want to post my first question here, and I would like to insert HTML and JavaScript code.
I've been checking questions to different answers, and there is a "run code" button that runs both ...
-11
votes
1
answer
164
views
Do I need to put onloads and main elements in code snippets? [duplicate]
RELATED: Allow us to choose a doctype for Stack Snippets
I can put this in a code snippet:
$("#box").css("color", "red");
<div id="box">Hello, World!</div>
I can also do this:
...
-4
votes
1
answer
185
views
How do you ask a question with a code snippet? [duplicate]
I see a header with formatting tips but nothing for code snippets. Am I missing it?
0
votes
0
answers
70
views
What is the correct way to enter code snippets? [duplicate]
How do you enter code so that it presents a "Run Snippet" button at the bottom?
I have tried using [ code ] [ /code ] and < code > < /code > tags (without the spaces)
and ...
2
votes
0
answers
46
views
Stack snippets: are there any official guides on this function? [duplicate]
I've seen some users using snippets but I'm not sure how to do it myself. Might sound trivial but I'd like to know.
Using JSFiddle or CodePen to show working code doesn't seem as effective as using ...
41
votes
10
answers
7k
views
Staging Ground Workflow: Canned Comments
Throughout this year, we’ve published several posts about different aspects of the Staging Ground. This post will focus specifically on canned comments that Reviewers can provide on the question. We ...
163
votes
1
answer
9k
views
How do I create a React Stack Snippet with JSX support?
In the Stack Snippets editor, I can see a drop-down box for including a version of React, but how do I actually create a snippet using React with JSX in it?
Return to FAQ index
65
votes
10
answers
2k
views
Question Close Reasons - Definitions and Guidance
This community-wiki Q&A is a compiled set of guidance for the close reasons used on Stack Overflow.
It's meant to be a canonical repository and a resource for the community – both for authors of ...
121
votes
2
answers
1k
views
Can we please get the "How to create an MCVE" help page updated, to state that a link to a GitHub project is generally NOT an acceptable MCVE?
I'm seeing more and more questions where the asker posts an excerpt of code, that by itself is not runnable, with a link to a GitHub repo and... that's it. (In some of the more egregious examples, ...
55
votes
1
answer
1k
views
Unrunnable/useless Stack Snippets in Suggested Edits
Lately, I’ve seen some suggested edits from a particular user that simply change a code block into a Stack Snippet. (Almost all of their suggestions are just this). Sometimes, the snippet isn’t even ...
20
votes
2
answers
483
views
How do I demonstrate a preventDefault problem on a link in a Stack Snippet?
I need to demonstrate a problem with using preventDefault to prevent following a link, but Stack Snippets won't let me have a link that navigates to another page or opens a new window. So how do I ...
134
votes
0
answers
26k
views
FAQ Index for Stack Overflow
Community FAQ
(For Stack Overflow and Meta Stack Overflow)
For official guidance from Stack Exchange, visit the Help Center.
Stack Overflow is part of a wider network; for issues that apply to Stack ...
16
votes
4
answers
382
views
Mention online compilers on the Minimal, Reproducible Example page?
(Note: This is mainly motivated by what I observe in the C++ tag - other tags may have different experiences - please share!)
Many times a day we link people to the Minimal, Reproducible Example site....
-12
votes
3
answers
190
views
Why was this question about an animation on a linked page closed? [duplicate]
I have a question about my Stack Overflow post: What kind of animation is used?
I was simply asking for a CSS rule implemented in a particular site which I found online.
Full question text, since the ...