Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

Searched for related posts, but none seemed to match this. Hence this post.

Take look at this SO post. It contains an XML code snippet which is specified as a code sample. If you look carefully, the section after /* is faded in color, indicating that the rest of the contents are comments. However there is no matching */ to indicate end of comment.

Is this a bug? If not, how to ensure that the example above is not shown in faded text?

share|improve this question

The question is tagged Java, so the code prettifier is told to format all code blocks as Java. Since /* starts a multi-line comment in Java, it's grey.

I'm not sure if it makes sense to tag this sort of question as XML. It would fix the formatting, but the question isn't really an XML problem. However, I just tested this out by temporarily changing the tags and it did indeed work.

share|improve this answer
You can also add an HTML comment before the block if you don't want to change the tags; see: – Blorgbeard Jul 7 '13 at 19:13

You must log in to answer this question.

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