-3

I was going through the question HTTP to HTTPS redirection issue with Tomcat 8 and found that the Stack Overflow editor unable to properly format the code when it finds /* as a value of an XML tag, and it is treating this a beginning of a comment and commented our rest of the portion.

See the below picture.

Enter image description here

It is clearly a bug, and it should be resolved.

1 Answer 1

11

The syntax highlighting in a post is determined by what tags you use. Since that question was tagged with then all syntax highlighting was handled as though the code was Java. And, since /* is Java's syntax to start a block comment, that's how it gets rendered.

You can override the default syntax highlighting by using <!-- language: lang-xml -->, or any of the other languages shown here. I've updated the question with the correct language syntax, so you can find an example of it there.

You must log in to answer this question.

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