Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What code highlighting libs are there for Java?

I'd like them to be easy to bundle, with few dependencies and easy to use.

like image 763
Fabian Buch Avatar asked Oct 21 '08 11:10

Fabian Buch


1 Answers

Do you want to highlight Java code or use a Java lib to highlight some other code?

I use these two: https://jhighlight.dev.java.net/ (server-side) for xml and http://code.google.com/p/syntaxhighlighter/ (js lib) for other stuff. The latter has something called 'brushes' which are "pluggable" .js for several langauges. If you are doing simple highlighting, I recommend the ,js approach.

like image 57
Miguel Ping Avatar answered Oct 25 '22 23:10

Miguel Ping