Unanswered Questions
260 questions with no upvoted or accepted answers
155
votes
1
answer
2k
views
Collapsible Code Markup
Background
When answering questions on SO I generally like to ensure that my code is runnable by including sample data, so someone can copy, paste, and run it, seeing exactly what I'd proposed.
...
82
votes
0
answers
766
views
Can the editor have a dialog for adding code?
Regarding screenshots of code, Shog9 said this back in February:
Honestly, @Tanner, this is probably one of those situations where if we want to do better than a text warning we have to dig into ...
78
votes
0
answers
758
views
Add an option to hide or collapse less relevant snippet sections
Snippets are very useful, but often fill up a lot of the answer with irrelevant code.
(E.g. in JavaScript questions, often the solution can be demonstrated by changing a tiny part of the JavaScript ...
74
votes
1
answer
1k
views
Can we add a button "Format with Prettier" to the toolbar when editing posts?
Prettier supports formatting Markdown text and a bunch of languages. Can we add it as a button or format on save?
All the posts will have a unified look and feel, without the extra spaces, wrong ...
68
votes
0
answers
634
views
Discourage (and possibly auto-replace) code spans spanning multiple lines with code block
I'm making this a feature-request to implement a solution to the problem described in this question: Why are inline code spans across multiple lines allowed?
From time to time, I see some code ...
61
votes
0
answers
450
views
Replace code snippets by normal code block if JavaScript tag is absent
Some users (probably mostly new users) tend to use the "code snippet" tool for code in languages that aren't supported by Stack Snippets.
Would it not make sense to disable the code snippets ...
54
votes
0
answers
747
views
Code formatting article in help center is confusing
Prompted by Does inline code span require HTML escaping?, I took a look at /help/formatting. While it's mostly accurate, there is a fair amount of ambiguous terminology and subtle inaccuracies. I've ...
50
votes
0
answers
724
views
Pressing the quote button destroys text in code fences
Let's say I want to quote this shell code in a post:
foo=bar
echo $foo
First I put it in code fences so it shows up as code:
```sh
foo=bar
echo $foo
```
Then to quote it, I select it and either ...
49
votes
0
answers
1k
views
How can I add foldable code or text when answering someone’s question on Stack Overflow?
How do I add foldable code or text on Stack Overflow when writing a question or an answer?
<details>
<summary>Click to expand!</summary>
```HTML
<h1>Hide this until someone ...
49
votes
0
answers
399
views
Abusing the Code Snippet for wrong languages
I see this at least once a day, someone puts their Java or even C code in the Code Snippet thing that's meant exclusively for HTML / CSS / JS.
What it means - someone has to manually remove the magic ...
46
votes
0
answers
746
views
Don't push my tab's history too far
Whenever I click on Stack-Snippets®'s in any post, a new entry is made in my tab's history (the one for the back and forward buttons, accessible through window.history in js).
I like to keep my tab's ...
45
votes
0
answers
734
views
Rendered view requires blank line before (and after) tables, but preview works regardless
I saw a wrong table layout where the poster did the following and it looked wrong:
Table x
| Name | Category |
| ---- | -------- |
| A | High |
| b | Medium |
| c | Low |
...
43
votes
0
answers
682
views
Use HTTPS for snippets because some features are HTTPS only
Many features of the browsers are starting to require HTTPS which means they don't work on Stack Overflow snippets. Please consider using HTTPS for Stack Overflow snippets.
I recently tried to answer ...
43
votes
0
answers
739
views
Create a magic link introducing stack snippets
I just happen to come across another fiddle request.
One feedback this thread: Inform the users about the existence of stack snippet while requesting external demos in comments received was the ...
40
votes
0
answers
330
views
Allow us to choose a doctype for Stack Snippets
Sometimes a specific doctype is required to reproduce an issue. Currently it's not possible to specify a doctype for a Stack Snippet's html section. I've tried this:
<!DOCTYPE html PUBLIC "-//...