Linked Questions

329 votes
5 answers
168k views

Oftentimes, I want to include code samples in a list, for example: Item One Item Two, for example: private bool ItemTwo() { return this.IFeelLucky; } Item Three The problem is that there isn't a ...
36 votes
4 answers
23k views

I was wondering if there is an easy way to indent the code in Stack Overflow. Whenever I paste in code, all the code loses its indentation; what I have been doing is manually indenting every line with ...
user avatar
30 votes
2 answers
16k views

How do I get the following to show up (on stackoverflow) with color syntax highlighting? class Foo { internal Foo() { for (int i = 0; i < 42; ++i); } }
genxgeek's user avatar
  • 423
15 votes
6 answers
94k views

Possible Duplicates: How to post code in SO How do I format my code blocks? When I post code here it ends up all mangled. How do I make it look pretty? For example, posting //#include (minus the //) ...
user avatar
19 votes
3 answers
12k views

I am trying to ask a question which contains sample XML code but I can't paste sample XML code in the question. How it can be done?
user avatar
8 votes
3 answers
3k views

I've posted a lot to StackOverflow, and I've noticed something kind of irritating with the formatting in writing questions and comments. If I need to put something inside a < and a >, without ...
thnkwthprtls's user avatar
20 votes
1 answer
78k views

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 ...
user avatar
14 votes
4 answers
16k views

Possible Duplicate: How do I format my code blocks? When I put HTML into the form field for Stack Overflow questions, it doesn't show up. Why is this, and is there a way to get HTML markup to ...
John's user avatar
  • 243
5 votes
4 answers
3k views

Possible Duplicate: How do I get my code blocks formatted? where should we post large chunks of code that we don't want to clog up our posts? Is there a way to make a scrollable code block? Or do ...
user avatar
2 votes
5 answers
20k views

How to write code in a question/answer on a Stack Exchange site?
user avatar
3 votes
2 answers
2k views

I am referring to this Stack Overflow answer where a user gave an answer, but the user has quoted the code instead of using code formatting. But, when I tried to edit it, this is what I got: So, how ...
samayo's user avatar
  • 696
13 votes
2 answers
18k views

How to format code in posts on Stack Overflow? I am getting frequent error messages while submitting posts with code. I am getting the following message: Your Post appears to contain code that is not ...
user avatar
8 votes
2 answers
16k views

Possible Duplicate: How do I format my code blocks? When adding a code block of several lines, must I indent each line of the code block by fpir spaces, or just the first line? In the following block,...
user159392's user avatar
5 votes
1 answer
2k views

Most of the times in order to give an answer or ask a question, I write code. But, writing code directly to the answer's textbox is quite tedious. I have to type too much spaces in order to get the ...
Raydel Miranda's user avatar
2 votes
2 answers
8k views

To enter code in StackOverflow, I indent each line with 4 spaces. Is there an easier way?
user avatar

15 30 50 per page
1
2 3 4 5
11