Skip to main content

All Questions

Tagged with
1 vote
0 answers
38 views

Cannot paste into SE code blocks when Editing, breaks text editor and Markdown preview

There seems to be something wrong with the text editor when editing code inside ``` code blocks. I've noticed this when editing questions. Copy code from my IDE Edit a question Highlight all of the ...
pkamb's user avatar
  • 4,677
7 votes
1 answer
186 views

When someone adds a "language identifier" to a code block does the specified syntax highlighting show in the "suggested edits" "queue"?

When I edit someone's code block with a language identifier: Example: from: ``` def py ``` to: ```python def py ``` Is that change reflected in the Suggested edits queue in the Inline or side-by-...
NotStanding with GoGotaHome's user avatar
0 votes
0 answers
49 views

Please allow to edit questions that are mostly code [duplicate]

There are some low-quality questions that consist mostly of wrongly formatted code. When trying to format it correctly (i.e., code actually becomes code), you get a notification that "your" ...
Leonard's user avatar
  • 117
1 vote
2 answers
78 views

Editing code with security issues or performance issues

I often edit code on stackoverflow when I see a security issue or a big performance issue that can be changed without altering the meaning of the answer, so in all fairness I would call it an useful ...
Tofandel's user avatar
  • 119
1 vote
0 answers
34 views

Cannot suggest basic formatting edits based on whitespace: "Edits must be at least 6 characters" [duplicate]

I often find myself wanting to improve new member's OPs readability by only doing basic formatting: adding whitespace to break down one chunk of text into several lines/sections adding - to format ...
iago-lito's user avatar
  • 157
5 votes
1 answer
88 views

I suggested an edit for updating formatting which was accepted but the author just rolled back the change to the previous unformatted state

I suggested this edit for updating formatting which was accepted by the community but the author just rolled back the change to the previous unformatted state. It seems there is no direct recourse of ...
Brandon Culley's user avatar
8 votes
1 answer
60 views

Editing code-heavy answers doesn't always work

Let's say I'm editing some poor sod's code that is unformatted, and is almost the entire question. I format the code, I add in the error message that was copy-pasted into the title, I fix the grammar, ...
auden's user avatar
  • 9,099
2 votes
1 answer
68 views

Is it OK to use a third party code formatting service while editing a post?

Whenever I see a poorly formatted post (might be a question or an answer) or completely non-formatted code, I use an online tool such as Instant SQL Formatter to format the code, and then I edit the ...
Lalit Kumar B's user avatar
0 votes
1 answer
46 views

Code formatting bug [duplicate]

I am trying to help format this questions code: https://stackoverflow.com/posts/22767772/edit Specifically I'm trying to make it code format for this section. var svg = d3.select("#body").append("...
aug's user avatar
  • 2,039
5 votes
1 answer
153 views

How to edit answers to fix syntax errors when "Edits must be at least 6 characters" [duplicate]

While looking for an answer of my problem "How to round numbers with decimals in javascript", I found this SO answer https://stackoverflow.com/a/14194399/177665 This can be done using Javascript as ...
cbliard's user avatar
  • 153
0 votes
2 answers
98 views

Should we allow code touch up for syntaxic sugar [duplicate]

I know the rules of editing : Do not touch the code Really, Do not touch the code! But how should I treat an edit for syntactic sugar ? Like changing : if(true) i.DoSomething(); To : if(true)...
ʞunɥdɐpɐɥd's user avatar
1 vote
0 answers
36 views

Editing posts - indent option [duplicate]

Would it be possible to add an option to the edit control (used to write questions/answers) to indent the line by 4 spaces. I find myself using 4-space indentation quite often to format the code and ...
Szymon's user avatar
  • 5,711
3 votes
1 answer
85 views

Should the formatting style be mimicked when editing posts? [duplicate]

Sometimes I see code like this on Stackoverflow: int main() { if(true){ return 0; } else{ return 1; } while(true){return -1;} } I will usually suggest this edit: int main() { if(true){ ...
FalconC's user avatar
  • 763
10 votes
1 answer
488 views

Should console output be formatted as code sample or as blockquote?

This question is regarding this suggested edit. This is another example. I am pretty sure I have been advised by more experienced users who have edited my posts in the past that we are supposed to ...
user avatar
14 votes
3 answers
102k views

How to easily unindent a block of code?

When editing a post, sometimes the code block has been indented too far and it forces a horizontal scrollbar unnecessarily. Is there a quick way to correct this type of indentation or do I still have ...
user avatar

15 30 50 per page