Where can I find a syntax highlighting library for Java?

sneha picture sneha · May 14, 2009 · Viewed 22.1k times · Source

I'm writing a source-code editor in Java (for Java source code), and I'd like to add simple syntax highlighting (distinctive coloring for keywords would suffice). Any suggestions?

Answer

Michael Myers picture Michael Myers · May 14, 2009

Something like JSyntaxPane, perhaps?

A very simple to use and extend JEditorKit that supports few languages. The main goal is to make it easy to have nice looking Java Swing Editors with support for Syntax Highlighting.