Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lightweight code editor widget for Java that supports JavaScript

I'm creating a Swing application where the user should be able to edit JavaScript codes. So I need some kind of code editor embeddable in Java that supports:

  • Customizable Auto-Completion (or if not already done, extensible enough to be easily implementable)
  • Syntax Errors Highlight (like Netbeans or other advanced editors that can mark the lines with syntax problems)
  • Color Syntax Highlighting (not very critical)

The need of it to be embeddable in Java is mainly because of the Auto-Completion which will be dynamic and very specific to the application.

Does such editor exists?

like image 710
douglaz Avatar asked Mar 01 '11 22:03

douglaz


1 Answers

RSyntaxTextArea supports syntax highlighting and auto completion, but not error highlighting:

http://fifesoft.com/rsyntaxtextarea

like image 173
Emmanuel Bourg Avatar answered Sep 28 '22 08:09

Emmanuel Bourg