swing text editor that color and highlight
java, swing, text-editor
Solution
RSyntaxTextArea
RSyntaxTextArea is a syntax highlighting text component for Java Swing. It extends JTextComponent so it integrates completely with the standard javax.swing.text package. It is fast and efficient, and can be used in any application that needs to edit or view source code.
RSyntaxTextArea was originally part of the RText programmer's text editor, but is currently being made into a separate component, reusable in any Swing application.
Screenshot:
Problem
i am writing an application that the user need to writes a javascript script as an input, right now i have a simple JTextArea but i would like to change it with something that will do some highlights and code coloring to make the script more coherent. do you know any open source thing that does that? thanks