1

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.

5

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

| improve this answer | |

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