Questions tagged [code]
Questions relating to code that appears in a question or answer, such as answers which are entirely code. Do not use this tag for questions about code formatting; use [code-formatting] instead - and NEVER EVER USE THIS TAG TO ASK A PROGRAMMING QUESTION ON META!.
19
questions with no upvoted or accepted answers
48
votes
0
answers
516
views
Reach out to Code Sandbox or some other mechanism for avoiding these links
I've seen a few questions where the code is all in a markdown link with an image to Code Sandbox:
[](https://codesandbox.io/s/new)
...
43
votes
0
answers
824
views
Bad CSS on quoted code on Meta
As seen in How to include code inside a quotation?
A very quick investigation (literally, right-click, Inspect Element :D) found the cause. For some reason, the minifier has interpreted tabs to be ...
37
votes
0
answers
581
views
Punctuation characters being escaped in code
For the past couple of days, it seems that when users paste code into their questions, but don't put it into a proper code block, many punctuation characters are being automatically escaped with ...
30
votes
0
answers
349
views
Please remove scrollbar-width: thin from code blocks AND fix the missing ends
Horizontal scrolling of code blocks is a thing to say the least.
foo bar baz buzz foo bar baz buzz foo bar baz buzz foo bar baz buzz foo bar baz buzz foo bar baz buzz foo bar baz buzz foo bar baz ...
29
votes
0
answers
458
views
Inlining external code - copyright?
Today I came about a question in the review queue which could benefit from inlining the small code sample that was linked by OP by including it directly into the question.
But: Code hosted on Stack&...
22
votes
0
answers
134
views
Add codesandbox.io to the list of sites that prompt to put code in the question itself?
As far as I am aware, if someone asks a question and pastes a link to websites like JSFiddle, JSBin, or CodePen, they get prompted to put code in the question itself.
Lately I've been seeing links to ...
22
votes
0
answers
369
views
Should we automatically detect pastebin (and other related) sites?
New users can only post a limited amount of links. However, they might reserve this link for paste sites such as pastebin, bpaste and so on. In my opinion, these kinds of websites are useless as the ...
17
votes
0
answers
302
views
Add a means for tab stacking code snippets
The vast majority of questions on Stack Overflow come with a specific language tag and no post in the tag will contain any language other than that specified language.
However, for some questions are ...
16
votes
0
answers
223
views
Vertical scrollbar in code snippet overlap userbar
When scrolling the code snippet up and down, the vertical scrollbar is overlapping the top user bar which, I think in an ideal case, should be below.
Not sure if this should be called a bug but I feel ...
12
votes
0
answers
144
views
Why do we still have strange escape backslashes appearing in question code?
I was wondering why would users have that weird backslashes when pasting code. Now I noticed that this is a persisting issue1, 2, 3. Why hasn't this been solved yet? See here. I've edited several ...
8
votes
0
answers
123
views
Triple-backtick code blocks don't get blockquoted correctly
Suppose I have a code block like this contrived pseudocode:
```
Here {
is
}
my code
```
When I select the whole block including the backticks and then use try to blockquote it using the button or ...
5
votes
0
answers
132
views
Can we add a nudge to use a PowerShell validator when PowerShell code is detected?
For a while I have been contributing to Stack Overflow with PowerShell questions and answers. In here I am seeing a lot of questions with code examples that could be automatically resolved (or ...
4
votes
0
answers
138
views
Why are tabs in the code replaced with spaces?
Why are tabs replaced by spaces in the output when I type them inside of code fences?
Here I used tabs:
int func()
{
somecode;
}
But you see spaces.
4
votes
0
answers
90
views
Shouldn't Ctrl + A in a code-block select the block's code instead of the entire page?
When you use Ctrl + A on a Stack Overflow page, regardless of content, the default browser behavior is used -- which is to highlight everything on the page.
Other sites (like Gmail, etc.) have a ...
3
votes
0
answers
102
views
Syntax is not getting highlighted/accepted even if I use (Ctr+K) or indent the code myself
I have tried everything from using '```python' to indenting myself. The code which I want to upload does get highlighted in grey when I use the above methods but the syntax doesn't get highlighted. ...
3
votes
0
answers
133
views
Acceptable question with too low text-to-body ratio
Not long ago I gained the privilege to review queues and I try to help the community a little by handling issues in the queues.
My issue is with questions with low text-to-body ratio. Often askers ...
2
votes
0
answers
73
views
Where do I ask Competitive coding questions which don't have solutions?
Where should one ask for hints and solutions regarding competitive coding problems/questions for which the author on some sites don't provide the answer, and I'm unable to solve the problem after ...
2
votes
0
answers
571
views
Pasting multi-line code block sometimes fragments the code
I was trying to answer a SO question that involved some VBA. The question had a code block, which I copied to my VBA editor (which resulted in some non-indented lines, made some fixes, then put it ...
1
vote
0
answers
150
views
While editing a question, this piece of text causes the error: "contain code that is not properly formatted"
I am editing one of my questions on Stack Overflow.
It raises an error:
Your post appears to contain code that is not properly formatted as
code.
After some digging, I find it is about this text:
(...