JavaScript editor for embedding in java application

I have a pretty large Java application with the Swing UI. I am interested in adding a user script through JavaScript. So that users can edit JS from the application, I would like to go beyond the plain text JEditorPane with some syntax highlighting and smart indentation. The application is LGPL, so the license must be LGPL-compatible.

I can use the old version of jedit-syntax (MIT license), but I'm wondering if there is any actively supported project that does something similar, ideally, in mod. I would prefer something lightweight - no RCP Eclipse or NetBeans, thanks.

+4
source share
3 answers

I have not used it, but it looks the way you need it and it is supported: http://fifesoft.com/rsyntaxtextarea/

+3
source

A really good Swing editor for JavaScript (and some other languages) is JSyntaxPane. http://code.google.com/p/jsyntaxpane/

It has syntax highlighting and some other useful functions (line numbering, highlighting in brackets). It can also be customized (for example, if you have special keyword extensions).

The editor is distributed under Apache 2.0. I do not know if it is compatible with LGPL or not.

+3
source

I don't know if it can work with Swing, but I would recommend TinyMCE . Since you are in java, try this version or this implementation and use as provided here

0
source

All Articles