How do I format text here? I keep getting this message:

  • Please add some context to explain the code sections (or check that you have not incorrectly formatted all of your question as code).
  • 1
    You cannot create a question exclusively with code.
    – kba
    Nov 20, 2011 at 23:49

2 Answers 2


The message you are receiving is because the question you are trying to post contains just code, which would mean:

  • You really posted only code, without a line to explain what you are trying to achieve, why it doesn't work, and which error messages you eventually got.
  • You didn't post just code, but you kept adding four spaces at the beginning of every line, which are used in Markdown to format code.

In the first case, you need to add an explanation to your question; in the second case, you need to remove the spaces at the beginning of the lines, if what you wrote is not code.


You're looking for the documentation.


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