Skip to main content
typo
Link
lineage
  • 875
  • 4
  • 5

Ill-formatted code error preventing answer submission: Xml comment breaks answer submission:

title that shows the now found cause
Source Link
lineage
  • 875
  • 4
  • 5

Ill-formatted code error preventing answer submission: Xml comment breaks answer submission:

This question was earlier titled as just 'Ill-formatted code error preventing answer submission'. After finding the cause, it was amended to help potential future searches. See my answer that follows.

I am trying to post an answer on SO but it keeps showing ill-formatted code error. It renders fine in the preveiw though. What's the issue?

Ill-formatted code error preventing answer submission

I am trying to post an answer on SO but it keeps showing ill-formatted code error. It renders fine in the preveiw though. What's the issue?

Ill-formatted code error preventing answer submission: Xml comment breaks answer submission:

This question was earlier titled as just 'Ill-formatted code error preventing answer submission'. After finding the cause, it was amended to help potential future searches. See my answer that follows.

I am trying to post an answer on SO but it keeps showing ill-formatted code error. It renders fine in the preveiw though. What's the issue?

typo, another faq
Source Link
lineage
  • 875
  • 4
  • 5

The text I actually enter can be seen by viewing this question in Edit mode. The actual text starts at the comment <!-- and ends with the url that ends like 1/r/wpryj1/3. These FAQs are posted below that.

Isn't your question a duplicate of [this one][2]this one?

Have you tried other variations? Switch browser? Use ````` instead? Yes, I have. Same problem exists on Chrome as well (I was posting on Firefox). I did try using the back-tick based formatting as that is how I usually type code on SO but that didn't work either and the error message suggested to put 4 spaces at the start.

Yes, I have. Same problem exists on Chrome as well (I was posting on Firefox). I did try using the back-tick based formatting as that is how I usually type code on SO but that didn't work either and the error message suggested to put 4 spaces at the start.

Yep. doesn'tDoesn't work

Yes, I was. Its definitely in the code block. If I delete it entirely, the error goes away.

Does the text post here, as an answer?

Yes.

Luckily, once I rewrote every single character of the code in the answer, the answer posted fine. What puzzles me is as given there isn't any invisible character present that's messing with the formatting. Nor have I faced this error earlier over countless code copy-pastspastes.

The text I actually enter can be seen by viewing this question in Edit mode. The actual text starts at the comment <!-- and ends with the url 1/3. These FAQs are posted below that.

Isn't your question a duplicate of [this one][2]

Have you tried other variations? Switch browser? Use ````` instead? Yes, I have. Same problem exists on Chrome as well (I was posting on Firefox). I did try using the back-tick based formatting as that is how I usually type code on SO but that didn't work either and the error message suggested to put 4 spaces at the start.

Yep. doesn't work

Yes, I was. Its definitely in the code block. If I delete it entirely, the error goes away.

Luckily, once I rewrote every single character of the code in the answer, the answer posted fine. What puzzles me is as given there isn't any invisible character present that's messing with the formatting. Nor have I faced this error earlier over countless code copy-pasts.

The text I actually enter can be seen by viewing this question in Edit mode. The actual text starts at the comment <!-- and ends with the url that ends like /r/wpryj1/3. These FAQs are posted below that.

Isn't your question a duplicate of this one?

Have you tried other variations? Switch browser? Use ````` instead?

Yes, I have. Same problem exists on Chrome as well (I was posting on Firefox). I did try using the back-tick based formatting as that is how I usually type code on SO but that didn't work either and the error message suggested to put 4 spaces at the start.

Yep. Doesn't work

Yes, I was. Its definitely in the code block. If I delete it entirely, the error goes away.

Does the text post here, as an answer?

Yes.

Luckily, once I rewrote every single character of the code in the answer, the answer posted fine. What puzzles me is as given there isn't any invisible character present that's messing with the formatting. Nor have I faced this error earlier over countless code copy-pastes.

added faqs for elaboration
Source Link
lineage
  • 875
  • 4
  • 5
Loading
typos
Source Link
lineage
  • 875
  • 4
  • 5
Loading
Source Link
lineage
  • 875
  • 4
  • 5
Loading