admin管理员组

文章数量:1427327

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?

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?

Share Improve this question asked Mar 1, 2011 at 22:12 douglazdouglaz 1,3462 gold badges13 silver badges17 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 5

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

http://fifesoft./rsyntaxtextarea

I'm not aware of an editor that's specifically designed to be embeddable, however there are tons of programmer's editors that are open-source and written 100% in java. Here's a list of some of them: http://java-source/open-source/ides

本文标签: Lightweight code editor widget for Java that supports JavaScriptStack Overflow