1

While writing this post I clicked "code" and cut and pasted XML schema into the question. For some reason, all this then displayed was the first line "<?xml. . .". I fixed this by manually selecting and re "codifying" the text. But I shouldn't have to!

Thoughts? Observations? Is this true of all XML?

2

What happened was that only ended up indenting the first line of code. For code to show up properly every line needs to be indented by four spaces.

What you can do instead is paste your code in, then go back and select it and press the code button (or Ctrl-K). That indents it after the fact so it shows up right. That's how I fixed your post, I highlighted the XML and hit the code button.

  • interestingly, I did this too, we must have edited it simultaneously. If you can, try to edit this post, and take a look at whats happening here (my post is being cut off). – user135632 Oct 10 '09 at 20:14
  • I don't have enough rep to edit here. :-( – John Kugelman Oct 10 '09 at 21:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .