RSyntaxTextArea is a handy, easy to use syntax highlighting text component specially designed for Java Swing.
This component 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.
Here are some key features of "RSyntaxTextArea":
· Syntax highlighting for over 20 programming languages
· Code completion (Addon library, work in progress)
· Find/Replace with standard options (regex, match case, etc.).
· Loading and saving of local or remote files (via FTP).
· User-defined macros
· Code templates
· Unlimited undo/redo
· Drag and drop
· Edit with multiple fonts simultaneously
· Bracket matching
· Current line highlighting
· Clickable hyperlinks (only certain languages)
Requirements:
· Java
What's New in This Release: [ read full changelog ]
· Added LaTeX syntax highlighting and code folding.
· Added DTD syntax highlighting.
· Fixed issue with RTextScrollPane, allowing it to be used in NetBeans' visual editor.
· Fixed bug in CurlyFoldParser.
· RSTA now has anti-aliasing enabled by default, no need to call setAntiAliasEnabled(boolean) manually.
· TextEditorPane now fires FULL_PATH_PROPERTY from its load() method like it does from saveAs().