Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Text editor widget which supports syntax highlight, links and online spell checking

I'm looking for a embeddable text editor widget/component which supports syntax highlight, links and online spell checking (like in modern web browsers and word processors, i.e. without having to click on "Spell Check" buttons).

My app is using Java and SWT, so I can use any Java based text editor or HTML JavaScript ones (by using the Browser widget which does support WebKit). It's also possible to embed Swing-based editors.

The solution should run at least on the three major platforms (Win, Mac, Linux).

like image 358
Aaron Digulla Avatar asked Sep 11 '11 09:09

Aaron Digulla


1 Answers

It's all there!

  • JSyntaxPane is an EditorKit for JEditorPane (Swing), i.e. you can simply plug it in to an existing EditorPane.
  • Jazzy Swing is a SpellChecker library for Swing which can be plugged in independently from JSyntaxPane, i.e. you can use them together and with standard widgets (like JEditorPane).
  • JEditorPane is already capable of displaying links. There is an example over here on how to use Hyperlinks with a JEditorPane.

Of course this solution is targetting primarily Swing Applications, but as you said Swing was no problem for you, this seems like viable options.

like image 187
scravy Avatar answered Sep 21 '22 03:09

scravy