Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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


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.