Use [ code ] and [ /code ] (without the spaces). For example, entering
[ code ]
double calc (string a, string oper, string b)
{
double c;
double d;
double answer;
[ /code ]

gives the result:
Code:
double calc (string a, string oper, string b)
 {
 double c;
 double d;
 double answer;