Quantcast
Viewing latest article 17
Browse Latest Browse All 39

Answer by camickr for Goodbye, Prettify. Hello highlight.js! Swapping out our Syntax Highlighter

Java highlighting difference

I don't know what the exact rules was, but in the old highlighting any word in the Java code starting with a capital letter was highlighted.

I found this a nice feature since class names should start with a capital letter, so class names would stand out from variable names in the code.

Of course there was an issue when people didn't follow Java conventions, but overall I found the code easier to read.

In the new highlighting there isn't any difference between capitalized or uncapitalize words, so class names and variables names all appear the same.


Viewing latest article 17
Browse Latest Browse All 39

Trending Articles