What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 150 Stack Exchange communities.

Possible Duplicate:
Best way of pasting a lot of code into a question or answer?

To add code in my posting I have to manually add five white spaces as we all did... But it gets really annoying if I have a long lines of codes..What do you guys do with this?

share|improve this question

migrated from stackoverflow.com Mar 22 '11 at 7:59

This question came from our site for professional and enthusiast programmers.

marked as duplicate by Tobias Kienzler, Jeff Atwood Mar 22 '11 at 11:49

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Shouldn't this be on meta? – pero Mar 22 '11 at 5:09
Looks like duplicate of: meta.stackexchange.com/questions/25624/… – Shadow Wizard Mar 22 '11 at 8:39

4 Answers 4

Select the code and then hit the button above the edit box that looks like "{}".

share|improve this answer
Or use CTRL-K if you don't want the hassle of finding your mouse. – paxdiablo Mar 22 '11 at 5:05

Just enter you code in without the spaces, then select all the lines and click the { } button in the editor toolbar.

share|improve this answer

You could just link to it on pastebin. Not an elegant solution but it works easily enough.

share|improve this answer

You should always try and paste the code into here, but you can always use something like paste bin.

share|improve this answer