News for hackers. Stuff that matters.
Re:Love It or Hate It, Java Continues to Evolve by vmurthy on Monday June 17, 2019 @04:42AM (#20201028)
> I suppose a decent syntax highlighter library like pygments or chroma would be nice too.

Could you clarify this? I last worked on Java in 2016 but even at the time, we had eclipse settings that had Syntax highlighters. Am I missing something?

Re:Love It or Hate It, Java Continues to Evolve by boyter on Monday June 17, 2019 @04:48AM (#20201058)
Have a look at http://pygments.org/ or https://github.com/alecthomas/chroma where you can pass code into a library and it returns highlighted HTML.

You can use Pygments in Java using Jython but its performance is questionable and can be incredibly slow when highlighting lisp code for example.

Its a very edge case for most people, but seeing as I am working on a searchcode.com upgrade I need a fast highlighter. Currently I am spawning a background Go process using Chroma to take care of this for me, but if there was a decent Java library I would use it. None exist I am aware of that are even slightly up-to date.