If you are typing code in your response, we ask that you surround them with tags like this: [code]
This produces the plain, black and white formatting you see. It is standard and can be used for any language. However, there is the possibility to get colored, formatted output specially for your language, such as C, C++, Java, etc. etc. In this case, you would manually go to the [code] tag and replace it with: [code=c], or [code=cpp], or [code=java], etc. etc.
See also
this section of our FAQ.