Use
<pre></pre> or
<code></code> tags around it like:
<pre>
#include <iostream>
int main(int argc, char** argv)
{
std::cout << "Hello World!\n";
return 0;
}
</pre>
Note the
< . Make sure you encode any HTML entities (<, >, &, etc.) so they don't get mixed in with the markup
Last edited by ShawnCplus; Oct 2nd, 2009 at 3:48 pm.
Reputation Points: 520
Solved Threads: 268
Code Monkey
Offline 1,564 posts
since Apr 2005