Linked Questions

31
votes
4answers
17k 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 ...
7
votes
6answers
59k 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 ...
13
votes
3answers
10k 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?
4
votes
4answers
2k 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 ...
6
votes
3answers
1k 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 ...
8
votes
4answers
12k 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 ...
9
votes
1answer
34k 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 ...
6
votes
2answers
5k 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; ...
1
vote
5answers
16k views

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

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

How to enter code snippets in posts on Stack Overflow [duplicate]

How to enter code snippets 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 ...
4
votes
1answer
7k views

How to insert code in stack overflow [duplicate]

Possible Duplicate: How do I format my code blocks? I did the following: I wrote my question, paste my code, then click {} from the format toolbar. My code turns to grey-colored, but is not ...
2
votes
4answers
3k views

How to post HTML text on Stack Overflow? [duplicate]

If I'm trying to post a question/answer on Stack Overflow, with some code that contains HTML text syntax inside, how do I do it nice with highlights. For example, I would like to post this line: ...
6
votes
1answer
8k 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 ...
2
votes
2answers
5k 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?
6
votes
2answers
11k views

Pasting code into stackoverflow 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 4 spaces, or just the first line? In the following ...

15 30 50 per page