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

Possible Duplicate:
How do I format my code blocks?

Whenever I try to ask a question or give an answer, I am unable to insert my code properly. I have tried to put the code in single quotes and to press Ctrl K. It works for short code samples, but if I have long code, how can I format it properly?

share|improve this question

marked as duplicate by kiamlaluno, Lance Roberts, Robert Harvey Oct 22 '11 at 4:10

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.

4  
You could try formatting your Question Properly As well Because Typing Each word with A Captial is Very Annoying. Check out this FaQ question for guide to formatting code. –  tombull89 Oct 21 '11 at 11:05
    
Examples? You get up to 30k characters for answers and 40k for questions. If your code is longer (after adding whitespace for the code formatting) than 30,000 characters, then you won't be able to post it. How long is "Some Long Code"? –  Kevin Vermeer Oct 21 '11 at 11:17

1 Answer 1

up vote 3 down vote accepted

Don't put the code in single quotes first. There are backticks (`) that are used to format quote inline with the text. For example here, but these are not to be confused with '.

Or you can highlight a block of code and hit Ctrl-K.

block
block
block
share|improve this answer

Not the answer you're looking for? Browse other questions tagged .