What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 133 Stack Exchange communities.

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

1 Answer 1

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: meta.stackoverflow.com/editing-help#syntax-highlighting –  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 .