Anyone interested in syntax highlighting should read the book Human Factors and Typography for More Readable Programs. The majority of the book is devoted to non-color techniques, but they do present some ideas for how to effectively use color near the end.
Much of syntax highlighting in the wild is junk, just distracting eye candy.
Much of syntax highlighting in the wild is junk, just distracting eye candy.