Skip to main content

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!.

25 votes
0 answers
203 views

Code blocks now have a header with a language tag and a Copy button. While this feature probably addresses a very old request, it poses multiple problems: the copy button is only useful for very long ...
chqrlie's user avatar
  • 152k
47 votes
2 answers
467 views

(Cross-posted as a bug report to MSE which lists all affected languages found thus far. Please go there to see if a language you've observed being labeled incorrectly is included in the table) I just ...
TylerH's user avatar
  • 21.3k
24 votes
4 answers
713 views

As one of your newest moderators, I've been handling a bunch of not-an-answer flags. One NAA flag was for this answer: The flag comment said that the link was broken. When reviewing the flag, I: ...
Stephen Ostermiller's user avatar
2 votes
1 answer
253 views

I have been staunch in my opinion of Posting images of code I will 100% of the time either downvote the question or flag to be closed. My question is, am I being too rigid? We've given plenty of ...
Zak's user avatar
  • 7,581
-8 votes
1 answer
214 views

I wanted to post a question on Stack Overflow. I tried posting a code with its error. But, it showed some indentation error in code. I was not able to find any {} above to resolve the problem. ...
Rohini Stanly's user avatar
12 votes
0 answers
206 views

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 ...
jay.sf's user avatar
  • 76.3k
-16 votes
2 answers
197 views

I have a question about my Stack Overflow post: Why are margins not working in my HTML file and how can I fix that? I have a problem with my HTML file, but I can't figure out how I should ask about it....
Orisphera's user avatar
2 votes
1 answer
239 views

Tl;Dr: As of November 2022, is Google still the best option to search for posts including specific code methods? I'm trying to find questions with code generated by the Google Sheets Macro Recorder. ...
Wicket's user avatar
  • 39.4k
-17 votes
2 answers
287 views

I edited this answer on Stack Overflow and improved its format, so it's easier to read and conforms to Python best style/format practices. Is it a good edit or not? It used to look like this return ...
weAreStarsDust's user avatar
3 votes
0 answers
123 views

I've noticed that lately strange backslashes are appearing more and more frequently in edited code. Here is another example. Is this a user failure or a bug in the site's code rendering?
jay.sf's user avatar
  • 76.3k
39 votes
1 answer
897 views

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 ...
Barmar's user avatar
  • 789k
45 votes
6 answers
3k views

Context: "How to call a method from a class referenced as a string?" More general context: how do we educate occasional users, or new users, to the best practices to follow when posting a ...
VonC's user avatar
  • 1.4m
20 votes
2 answers
2k views

I answered a question (since closed: "This question needs debugging details. It is not currently accepting answers," and deleted) a little while ago, and it really is a good answer, because ...
user avatar
-9 votes
2 answers
315 views

Similar questions I have checked some previous questions/answers like this one: Highlight Line of Code But I did not like the answer and this can be troublesome. Proposal Let's say I post a big (but ...
Lucca Ferri's user avatar
  • 1,359
1 vote
0 answers
166 views

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: (Do ...
AdmiralOrange's user avatar

15 30 50 per page
1
2 3 4 5
10