Click here to Skip to main content
15,892,072 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Copy

if (bug)
  cry();


Paste becomes to
XML
<pre>
if (bug)
  cry();
</pre>


or

<pre>
if (bug)
cry();
</pre>

Which makes no sense in my view and is really annoying ...
Posted
Comments
hfrmobile 17-May-11 8:50am    
also occurs for bold html etc.
also occurs for <b>bold html</b> etc.

When you are pasting, ensure that you have selected the "allow HTML" radio button below the "Add your solution here" editor window. Your paste will then not be wrapped in a pre block. In the Auto Detect setting, the paste will automatically be wrapped in the pre block.
 
Share this answer
 
While pasting please select the following radio button
"encode HTML character"
 
Share this answer
 
Thanks a lot!

allow HTML radio button did it.

cout << "Hello world." << endl;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900