Questions tagged [code-formatting]
For questions about making code appear correctly in questions, answers and comments.
857
questions
7
votes
1
answer
115
views
I don't like to scroll sideways to read embedded code. Any solution?
I have a wide screen like 70% of the people, still the Stack Overflow site has a small resolution support and any embedded code scroll sideways. Is there any settings that can resolved that ? (...
10
votes
0
answers
148
views
Don't change double-hyphens in titles into dashes. At least not on Stack Overflow [duplicate]
Possible Duplicate:
Fix Markdown/SmartyPants in question titles
This question: Why is `x-- > 0` not undefined behaviour, while `x = x--` is?
Actually, the -- in the title of the question is an ...
3
votes
0
answers
95
views
What is StackOverflow's code analysis and code style settings? [duplicate]
Which tools SO uses to validate the code?
Is Code Analysis used?
Which rules are included?
To validate the code style
Which tool is used?
Which rules are included?
39
votes
1
answer
12k
views
Code Formating in Comments
How can I format the code in comments?
17
votes
1
answer
290
views
Format code as code in the review preview
This is what I mean:
When you are in SO/review as you know you can see answers like this:
The problem I have is when I see this, I think the code is NOT properly formatted.
So I click on show full ...
3
votes
3
answers
158
views
How can I copy code from a question to an answer?
No matter what combinations or order of Ctrl+c, Ctrl+p, Ctrl+k, and the {} button I press, I cannot seem to copy formatted code from a question to my answer. Can somebody clue me in please?
Edit: I'm ...
0
votes
2
answers
129
views
Allow selection of font used for code segments
I have several programming fonts installed on my computer and would hate to have to muck about with them to have SO display code segments in my favourite one.
0
votes
0
answers
115
views
Can I set a specific language format when when writing in a code block? [duplicate]
Possible Duplicate:
How to specify a language in code block?
Hi, is there an option to set the language when formatting code in a StackOverflow question ?
I know that there are Wiki's that allow ...
0
votes
2
answers
178
views
How to format code? [duplicate]
Possible Duplicate:
How do I format my code blocks?
Whatever the link they have here to put before code does not work, it always tries to execute it. How can I post some code so it just displays?
14
votes
1
answer
139
views
Render code strings in question titles
It would be nice if backticked code in question titles were rendered the same way they are in question bodies. Since there are so many questions with code in them I feel it would be a big plus. ...
20
votes
2
answers
301
views
Allowing Ctrl+k in comments [duplicate]
Possible Duplicate:
Formatting Keyboard Shortcuts for Comments
I often use `keyword` (quotes around keywords) to highlight some keyword or phrase in comments. While the backticks work, the ...
0
votes
2
answers
179
views
Code inserting popup window
Problem
I'm sure everyone over 2.500 reputation has at least once had a question where the user simply didn't understand how to insert/highlight his code. Which often results in either none-formatted ...
13
votes
2
answers
226
views
Other than reformatting code, should you substantially alter a question's code samples?
I've noticed a particular user making subtle but important changes to code samples in other people's posts. For example:
https://stackoverflow.com/posts/4712794/revisions
In this case the change was ...
1
vote
1
answer
72
views
Problem with code highlighting
See my answer here:
I can't get this page to stop subtracting the xl sales from the total. classic asp
I can't get the
rscommon.close
wend
lines to be in the code block, tried loads of things ...