-9

I posted a Java question with Java code:

My custom made Stack class is always throwing StackIsUnderflowing Exception : Why?

Then I selected the code and used the curly brace button and a language: java HTML tag.

But the syntax highlighting is not working. Can someone tell me why?

closed as off-topic by mmyers, Pierre.Vriens, Robert Longson, Ward, Sonic the Reinstate Monica-hog Apr 16 at 2:26

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question's topic is only applicable to one specific site in the Stack Exchange Network. Questions on Meta Stack Exchange should relate to features or policies that commonly apply to the network or the software that drives it, within the guidelines defined in the help center. You should ask this question on the meta site where your concern originated." – mmyers, Pierre.Vriens, Robert Longson, Ward
If this question can be reworded to fit the rules in the help center, please edit the question.

4

The code in your post would be highlighted correctly if you would have done one (or both) things:

  1. you would have used the [java] tag (see the bottom of the tag info page)

    Even if it weren't for the syntax highlighting, please always tag your question with its programming language. On Stack Overflow, most people are browsing language tags to view questions they can answer, and the home page is also filtered on tags the system thinks a user is interested in. A single language tag might be causing a tenfold increase in the number of views[citation needed].

  2. you would have put a hard return before the line with <!-- language: java -->. Right now, the Markdown parser treats it as 'just' an HTML comment belonging to the previous paragraph.

  • 1
    Thank you, everybody, for helping me. I understand now the importance of tag. – mvr950 Apr 15 at 18:39

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