I was trying to answer a coding question in Java. I had some code and used <pre><code>
, put my code in, then typed </pre></code>
. I then came across this error when trying to post:
Oops! Your edit couldn't be submitted because:
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 [?] toolbar icon.
It is properly formatted (at least by the preview it is), so how can I fix this? I'm new to Stack Overflow formatting.
{}
in the format toolbar, which do nothing more than put 4 spaces in front of each line, instead of those weird XML tag thingies? – Christian Rau Jul 13 '12 at 6:50<pre><code>
ing yourself, I think. But even if we eventually decline this, it should still be explicit. – balpha Jul 13 '12 at 7:00