All Questions
Tagged with code-formatting stack-overflow
40
questions
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" ...
8
votes
2
answers
1k
views
Embedding code sandbox
Is it possible to embed codesandbox preview in Stack Overflow?
I have tried iframe, embed URL and links but none of it works.
0
votes
1
answer
83
views
Site etiquette re: posting code and why doesn't Stack Overflow have a text editor? [closed]
I am having a little trouble knowing how to proceed on the site. When my questions were math-based I had less trouble, but now that I have moved to programming questions I have run into problems.
My ...
0
votes
0
answers
24
views
Get keyword not highlighted (SO) [duplicate]
When I was browsing SO, I came upon a unexpected syntax highlighting quirk. In C# code, the "set" keyword, used in properties, was highlighted, but not "get". Could this be changed?
Here's a sample ...
18
votes
1
answer
1k
views
google-code-prettify seems dead
The code formating engine used by SO (google-code-prettify) seems dead (lasts two commits have been made on sep 2013 & mar 2014). As stated on this post, each code-formatting request have to be ...
1
vote
0
answers
19
views
Code rendered as text when placed after a list [duplicate]
I have some problems formatting code on so. If i use only 4 spaces in the code snipped in this post: SO-Post, the code will not be formatted as code.
I think it has some thing to do with the list (1, ...
1
vote
1
answer
83
views
Tags that format the indented code: what precedence is given?
Here is an example:
VBA openweathermap XML retrieval
The code used in this Q is VBA. OP has also tagged it as XML (which I would consider appropriate since it's dealing with XML parsing, ...
1
vote
0
answers
57
views
Enable tab spacing for inserting programming code on Stack Overflow [duplicate]
I think writing code is pretty hard to write in the textbox, having to press spacebar so many times. Wouldn't it be great to have a shortcut of some kind? In all text editors, a tab is a shortcut. ...
2
votes
1
answer
78
views
How to format a code in a comment
When you want to add a comment you get this:
Comments use mini-Markdown formatting: link italic bold code. The post author will always be notified of your comment. To also notify a previous ...
18
votes
1
answer
76k
views
How to insert code properly on Stack Overflow? [duplicate]
This is a simple question. I'm trying to enter code on Stack Overflow so I can ask people questions about my site. Stack Overflow says I have to indent or something to show my code. I've tried ...
12
votes
0
answers
429
views
Is there a way to know how many total lines of code Stack Overflow has produced?
Recently I saw an infographic called Million Lines of Code and I think it would be really cool if Stack Overflow could be on it. I am sure there are thousand upon thousand lines of code the Stack ...
-9
votes
1
answer
2k
views
Run/Test code in Stack Overflow [duplicate]
Is there any feature in development for Stack Overflow to RUN/TEST code online? I see many questions are linked to some other online tools to run and test the submitted code/corrected code.
Like the ...
1
vote
1
answer
229
views
Cannot understand how the Ctrl+K works in Stack Overflow [duplicate]
How does the code work with Ctrl + K? I am new to Stack Overflow.
I can't get it with Ctrl + K. I
press space button for 4 times in each line I post.
1
vote
1
answer
763
views
How to indent long code in question or answer? [duplicate]
Suppose I had to post 400 lines of code then will I have to indent all those lines by four spaces one by one or is there any other way ?
6
votes
1
answer
143
views
Code snippet formatting don't work after bulleted list formatted line [duplicate]
I have problem when answering or asking questions on StackOverflow
Suppose I have two possible code snippets and I want to ask which is better.
Here is code 1:
@Override
protected void onCreate(...