If I have a block of code and try to insert it, and press the code button, it indents the 1st line. and that's it. It seems that alone is a bug by itself.
But the reason it comes up is that one has to reformat each line to turn it into a code line by going in and manually adding 4 spaces in front of each line. Now, sure, I can compose my code and then force it over by 4 spaces and copy and paste, but for a site focusing on code and programming, the opposite problem is also present. If someone wants to copy my code, they have to manually copy/paste and then manually edit it to git rid of the extra spaces to make it compile.
Another problem came up when I was inserting code lines interspersed by commentary. The parser got confused and wouldn't let me post a 1300 line update, claiming that somewhere in the text it thought it saw a code-bit and it didn't think it was formatted properly (despite the fact that the preview looked fine).
The parts that were code were indented and fixed width, but the commentary on each code segment wasn't supposed to be. It seems there needs to be a way to override the "It looks like you have some code that isn't formatted properly." when the fact that something "looks" like something isn't the same as it being something -- yet it called the appearance of misformatting, an error. I agree: the fact that it was confused was an error. But it's not a human being and a broken algorithm shouldn't prevent me from posting it if I know, from the preview, that it is being formatted exactly the way I intended it to be.
These seem rather basic -- I'm surprised others have not run into this before and that hasn't been fixed...
Both of these issues make this a bit hostile for discussing code (if such is even a priority). Can these be fixed?