How to enter code snippets in posts on Stack Overflow? I am getting frequent error messages while submitting posts with code. I am getting the following message:
Your Post appears to contain code that is not properly formatted as code.Please indent all code by 4 spaces using the code toolbar button or the ctrl+k keyboard shortcut.for more editing help , click the ? tool bar icon.
I have tried this by using ctrl+k -->
enter code here and entered the code but I am getting the same error message. Also, I have tried using ">" before every line, even then the same message appears.