Java library for syntax highlighting text component
Java library for syntax highlighting text component (documentation)
RSyntaxTextArea is a syntax highlighting, code folding 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.
RSTA supports syntax highlighting for 40+ programming languages out of the box, as well as code folding for many of them. But you're not limited to well-known languages. Highlighting and folding can be added for custom languages and plugged in with ease.
It can also be extended to provide an IDE-like experience. Parsers can be plugged in to listen for code modifications and denote errors or warnings with squiggle underlines. Sister libraries can be used to provide language-aware code completion and spell checking. Focusable tool tips can display relevant documentation for methods or objects while editing.
This library only requires Java 5 or greater, so it's ready to use in any application.
Jar downloads can be found on SourceForge, or you can clone the source from GitHub. A forum is also available for questions, comments and feedback.
It is available under a modified BSD license.
Project information
- Maintainer:
- Registry Administrators
- Driver:
- Not yet selected
- Licence:
-
Other/Open Source
(Copyright (c) 2012, Robert Futrell All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the author nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.)
- This project’s licence has not been reviewed.
View full history Series and milestones
trunk series is the current focus of development.
All packages Packages in Distributions
-
rsyntaxtextarea source package in Mantic
Version 2.5.8-2 uploaded -
rsyntaxtextarea source package in Lunar
Version 2.5.8-2 uploaded -
rsyntaxtextarea source package in Kinetic
Version 2.5.8-2 uploaded -
rsyntaxtextarea source package in Jammy
Version 2.5.8-1 uploaded -
rsyntaxtextarea source package in Focal
Version 2.5.8-1 uploaded