The post contains both XML- and Java code. To my surprise, this question correctly prettified. Both XML and Java code are formatted correctly. This surprised me, because similar posts on spring.net also contain XML- and C# code, but are not correctly formatted (for example, this question). Why is this?
I know how highlighting hints work; that isn't the issue.
I've done quite a number of edits on questions and answers tagged spring.net to format the code. Are those edits necessary?
Kiamlaluno's answer is providing a possible explanation. Can someone with sufficient privileges on Stack Overflow confirm that:
To be confirmed: this Spring.NET question has tags with conflicting syntax highlighting settings. It would be strange for general tags like
Confirmed by balpha (see comments): the spring.net does not have a code-highlighting language set.
Kiamlaluno summarizes nicely how the system is supposed to work, but this can only be confirmed by someone with sufficient privileges on Stack Overflow (10k+, I suppose). If someone can confirm Kiamlaluno's "hypothesis", I'll be happy to accept his answer.
I'll keep a short list of posts with unexpected formatting: