Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

Possible Duplicate:
How do I format my code blocks?

How can I input the '#' character in the beginning of a line?

just like:

include

the '#' character automatically disappeared.

share|improve this question

marked as duplicate by mmyers Mar 10 '12 at 17:44

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.

up vote 5 down vote accepted

Stack Exchange sites use Markdown; # marks at the beginning of the line indicate a header. If you're typing code, indent it by four spaces and it will be formatted properly (and possibly syntax highlighted, depending on the language):

#include

You can also highlight a block of code and press the "Code Sample" ({}) button in the toolbar above, or press Ctrl+K, and it will indent all the selected lines


If it's not code and you really just want a # at the beginning of the line for some reason, you can also escape it with a \:

#include

I can't think of any legitimate need for that though

share|improve this answer

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