What behavior is it exhibiting that doesn't make sense?
It looks relatively normal, but could you add code tags around it so it preserves indentation? e.g.
Code:
printf("Hello World");
[ code ] opens
[ /code ] closes
(Eliminate the spaces from the tags)