Lightweight Java code editor widget that supports JavaScript

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

  • Customizable autofill (or, if it’s not already done, flexible enough so that it can be easily implemented)
  • Syntax errors highlight (for example, Netbeans or other advanced editors that may mark lines with syntax problems)
  • Color syntax highlighting (not very important)

The need to embed in Java is mainly related to autocomplete, which will be dynamic and very specific to the application.

Is there such an editor?

+7
source share
2 answers

RSyntaxTextArea supports syntax highlighting and autocomplete, but does not throw an error:

http://fifesoft.com/rsyntaxtextarea

+3
source

I am not aware of an editor specifically designed for embedding, however there are tons of programmer editors who are open source and written 100% in java. Here is a list of some of them: http://java-source.net/open-source/ides

0
source

All Articles