Skip to main content

Questions tagged [code-formatting]

For questions about making code appear correctly in questions, answers and comments.

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 ? (...
Philippe Lavoie's user avatar
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 ...
user avatar
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?
BrunoLM's user avatar
  • 3,623
39 votes
1 answer
12k views

Code Formating in Comments

How can I format the code in comments?
Siddiqui's user avatar
  • 531
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 ...
Trufa's user avatar
  • 6,291
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 ...
ThomasMcLeod's user avatar
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.
aviraldg's user avatar
  • 175
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 ...
Yochai Timmer's user avatar
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?
user avatar
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. ...
John Bachir's user avatar
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 ...
user avatar
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 ...
Octavian Helm's user avatar
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 ...
Kev's user avatar
  • 19.3k
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 ...
Tom's user avatar
  • 4,005

15 30 50 per page
1
47 48
49
50 51
58