Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using vim to edit Java code. I added a Javadoc header above the class definition, but the syntax highlighting is very strange:

enter image description here read the Javadoc comment above

Why is the first sentence highlighted white while the rest is highlighted gray?

share|improve this question
up vote 3 down vote accepted

The reason for the special highlighting of the first sentence is to emphasize that it is the summary of the Javadoc comment. The first sentence of a Javadoc comment is handled specially by the Javadoc tool, see this description of how Javadoc comments are interpreted.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.