Linked Questions

301 votes
5 answers
125k views

How to nest code within a list using Markdown [duplicate]

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
22k views

Easy way to indent code [duplicate]

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
14 votes
6 answers
85k views

How do I post code in StackOverflow? [duplicate]

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
18 votes
2 answers
11k views

How do I get code to show up with color syntax highlighting? [duplicate]

Possible Duplicate: How do I format my code blocks? How do I get the following to show up (on stackoverflow) with color syntax highlighting? class Foo { internal Foo() { for (int i = 0; ...
user avatar
  • 323
18 votes
3 answers
11k views

How to insert sample XML code in Stack Overflow? [duplicate]

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
7 votes
3 answers
2k views

How can I format to show text inside "<" and ">"? [duplicate]

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

where to paste large blocks of code / text? [duplicate]

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 ...
user avatar
17 votes
1 answer
62k 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 ...
user avatar
11 votes
4 answers
15k views

How can I paste HTML markup into a Stack Overflow question field? [duplicate]

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 ...
user avatar
  • 213
2 votes
5 answers
20k views

How to write code in a question or answer? [duplicate]

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

How to format code in posts on Stack Overflow [duplicate]

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
7 votes
2 answers
14k views

Pasting code into the Stack Overflow question textbox [duplicate]

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 ...
user avatar
5 votes
1 answer
2k views

What is the easiest way to post code in Stack Overflow? [duplicate]

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 ...
user avatar
2 votes
2 answers
7k views

How to easily indent multi-line code [duplicate]

To enter code in StackOverflow, I indent each line with 4 spaces. Is there an easier way?
user avatar
7 votes
1 answer
9k views

Best way to copy and paste code into a post [duplicate]

Possible Duplicate: How do I format my code blocks? This is my very first post on SO and I have a quick question... In order to post a code block it says to indent by four spaces. Does this mean ...
user avatar

15 30 50 per page
1
2 3 4 5
11