I have been trying to post an answer to this question:
Activate CSS3 animation when the content scrolls into view
I have read this but apparently I miss something probably obvious here because I am not able to post my answer. I get an error:
Your post appears to contain code that is not properly formatted as code...
I have pasted my answer here. As you can see, there are two blocks of codes, one with <script>
tags and the other with $(window).load()
.
In an initial attempt, I simply formatted them with the {}
icon which tabbed them by 4 spaces. Neither of them was appearing in the preview though, so I placed the <pre><code>
tags but again the same error kept coming, being unable to submit the answer.
What is wrong with the code blocks?
UPDATE: After @Mat 's comments, and since there have been no answers regarding to this, I would like to make clear that partly it has been my fault that I have not properly understood that 8 spaces are necessary for code formatting within lists. Nevertheless, I change the question tag to 'bug' since I believe that it would be best for the user interface if the relevant code formatting button would recognize that the code is in a list and add the necessary spaces by itself rather than getting a validation error on posting.
<pre><code>
markup, and indent by 8 spaces (necessary for code within lists).