RSyntaxTextArea Changelog

What's new in RSyntaxTextArea 2.5.6

Dec 12, 2014
  • Improved rendering performance when using tokens with background colors on OS X.
  • Other minor bug fixes.

New in RSyntaxTextArea 2.5.4 (Nov 27, 2014)

  • This is a spell checker add-on for RSyntaxTextArea 2.5.4. It should only be used with version 2.5.4 of RSyntaxTextArea (or later versions, if they do not have a newer, corresponding SpellChecker release).
  • This release is available in Maven: com.fifesoft:spellchecker:2.5.4
  • Adding spell checking for English (American or British) to RSyntaxTextArea is very easy; just follow the example source in src/main/java/org/fife/ui/rsyntaxtextarea/spell/demo/DemoRootPane.java.
  • It basically boils down to the following code:
  • File zip = new File("distfiles/english_dic.zip"); SpellingParser parser = SpellingParser.createEnglishSpellingParser(zip, true); textArea.addParser(parser);
  • More thorough examples can be found at http://fifesoft.com/rsyntaxtextarea. Check out the Examples page.
  • This release brings updates to stay in sync with RSyntaxTextArea 2.5.4.

New in RSyntaxTextArea 2.5.3 (Jul 1, 2014)

  • Improvements to PHP syntax highlighting.
  • In HTML and XML, "mark occurrences" should match tag names even when the caret is in an attribute, not just when it is in the tag name itself.
  • Java syntax highlighting updated for Java 8 classes, interfaces, and enums.
  • SQL: Matching opening/closing parens are now highlighted.
  • Fixed several bugs.

New in RSyntaxTextArea 2.5.2 (Mar 14, 2014)

  • Whether or not curly braces denote code blocks is now handled on a language-index level, not per TokenMaker. This means TokenMakers such as HTML, JSP, and PHP can provide auto-indentation and curly brace closing for 'sub-languages' such as JSP and CSS.
  • Java syntax highlighting updated for Java 8 classes, interfaces, and enums.
  • Added "mark occurrences" support for HTML.
  • Curly braces can now be automatically closed when editing CSS.
  • The SearchEngine class now automatically selects the next match after a Replace operation.
  • Fixed errors when loading/saving Theme XML.
  • Fixed several bugs.

New in RSyntaxTextArea 2.5.1 (Nov 20, 2013)

  • Improvements in Clojure syntax highlighting
  • Fixed exception in certain scenarios when word wrap and code folding were both enabled
  • Fixed rendering bug when visible whitespace was enabled
  • RTextScrollPane now allows JLayer/JXLayer as its view
  • Other minor bugs fixed

New in RSyntaxTextArea 2.5.0 (Aug 27, 2013)

  • Painting performance improvements.
  • Pretty major API changes; "Token" changed from a class to an interface, etc. This allowed for more aggressive caching of syntax highlighting information and thus better performance.
  • Improvements to Clojure syntax highlighting.
  • Minimum JRE requirement updated to Java 5 from 1.4.
  • Miscellaneous small bug fixes and changes.

New in RSyntaxTextArea 2.0.7 (Apr 29, 2013)

  • Set BracketMatchingEnabled(boolean) now checks for brackets "to the right" of the caret if one is not found "to the left."
  • Added API for applications to create custom hyperlinks in RSyntaxTextArea, though this API should not be considered stable.
  • Added "mark occurrences" support for XML. Currently just highlights the tag name at the current caret position and its match.
  • Fixed issue when auto-inserting spaces for tabs.
  • Major refactoring of rendering code.
  • "Traditional" selection rendering is now supported; that is, selected text can now be rendered as syntax highlighted tokens with a "selection" background (as it was previously), or as text as a single color with the "selection" background (as standard text components do). See RSyntaxTextArea.setUseSelectedTextColor(boolean).
  • Fixed performance issue in FoldingAwareIconRowHeader when it paints "active regions."
  • Added some new token types to better differentiate markup tokens from "regular" language tokens. This allows for better syntax highlighting for stuff like HTML, JSP, and PHP.
  • JavaScript highlighting now highlights JSDoc.

New in RSyntaxTextArea 1.5.2 (Aug 28, 2011)

  • Simplified the anti-aliasing API.
  • Java syntax highlighting updates to support Java 7 (binary literals, underscores in int literals).
  • Added tab lines/indent guide option.
  • Fixed single-quoted strings in MXML.
  • Added miscellaneous keywords to Unix shell and Windows batch scanners.
  • Minor bug fixes.

New in RSyntaxTextArea 1.5.1 (Mar 25, 2011)

  • Added Clojure syntax highlighting.
  • Added MXML syntax highlighting.
  • Fixed token painting/alignment issue caused by modelToView() on OS X.
  • Added smarter newline support when pressing Enter in a multi-line comment
  • in languages such as C, C++ and Java.
  • Fixing Properties file syntax highlighting: fix for properties with
  • multi-line values.
  • Updated TCL support: should auto-indent on '{' char, just like C, Java, etc.
  • Other minor bug fixes and updates.

New in RSyntaxTextArea 1.4.2 (Aug 2, 2010)

  • Groovy syntax highlighting updates (GDK Object methods, Java 5/6 java.lang
  • classes, URL's in comments)
  • Fix to prevent security exception setting AA hint in an applet (thanks to
  • Frederic in the forums).
  • Fixing positioning of FocusableTip on multi-monitor setups (thanks to
  • grzlbrmft in the forums for the bug report and testing).
  • AutoComplete's description window now updates itself in response to a
  • selection change after a small delay (120ms) instead of immediately, to
  • help performance for language supports with slower descriptions (e.g. fil
  • IO).
  • Added ActionScript syntax highlighting.
  • Improved performance of auto-completion list cell renderer for huge
  • completion lists.
  • Center the found/replaced text after search operations.
  • Fix for SourceForge bug 2998448: regex "replace all" is always
  • case-sensitive.
  • SearchEngine's concept of "whole word" is more accurate now (allows for
  • punctuation, such as ',', at the end of words, for example).
  • Added start of JUnit test for SearchEngine.java.
  • SearchEngine bug fixes for replaceAll() with regex and match case/whole
  • word enabled.
  • Fixed auto-complete bug with overloaded functions.
  • Fixed auto-complete bug - capitalization should be corrected when
  • completing a parameterized completion.
  • Improved properties file syntax highlighting: ':' can divide name/value
  • pairs.
  • Added "our" keyword to Perl syntax highlighting.

New in RSyntaxTextArea 1.4.1 (Mar 11, 2010)

  • Make default font be Monaco on OS X 10.4/10.5, and Menlo on Snow Leopard.
  • Syntax schemes are now smarter and automatically pick up on when you change
  • the base font of the editor, adjusting themselves accordingly.
  • Better cursor navigation with Ctrl+left/right arrows (now behaves like
  • Eclipse). Also improved word selection via double-clicking behavior.
  • Added method to toggle whether an EOL marker is painted for each line.
  • New keymapping: shift+space does a "dumb complete word" action where the
  • last word in the document that matches the "word" up to the caret position
  • is auto-completed. Keep pressing shift+space to go back further in the
  • document. Again, this is mimicking Eclipse's action (that has no default
  • key mapping).
  • You can now configure what constitutes a "task" identifier for TaskTagParser.
  • Improved XML auto-closing tags (accepts ':' and '-' chars in tag names, as
  • it always should have).

New in RSyntaxTextArea 1.4.0 (Dec 2, 2009)

  • Adding "FocusableTips," which are tool tips that become focusable when the
  • user clicks on them or presses F2, like the tool tips in Eclipse. These
  • are the default tool tips for RSyntaxTextArea, and can be used by parsers
  • (such as the spell checker) for user-friendly assistance.
  • Added an "Error Strip" component that can display markers for locations in
  • a text editor of parser errors, marked occurrences, etc.
  • Added Delphi, Scala and BBCode syntax highlighting support.
  • RSTA will now automatically insert a closing curly brace when appropriate
  • for C, C++, C#, Java and Perl. This behavior is toggle-able.
  • RSTA will now automatically complete closing XML tags when "

New in RSyntaxTextArea 1.3.4 (Jul 16, 2009)

  • Keep selection visible even when text area doesn't have focus.
  • Cleanup of undo/redo localization code.
  • Added Lisp syntax highlighting support.
  • Added API to set line numbering start index. SourceForge RFE 2812114.

New in RSyntaxTextArea 1.3.3 (May 13, 2009)

  • This is a minor release that greatly improves Mark Occurrences behavior.

New in RSyntaxTextArea 1.3.2 (Mar 27, 2009)

  • Fixed a bug that prevented JTextAreas from working when an R(Syntax)TextArea was created first.
  • Added a "Delete Lines" action (Ctrl+D).

New in RSyntaxTextArea 1.3.1 (Mar 10, 2009)

  • Fixed a bug in RTextScrollPane that made it unusable in Matisse.
  • Fixed some gutter painting issues.

New in RSyntaxTextArea 1.3 (Feb 23, 2009)

  • Smarter auto-indent for languages with C-style syntax (those that use curly braces to denote code blocks).
  • Added PHP syntax highlighting support.
  • Added ToolTipSupplier interface so hosting apps can supply tooltips without subclassing RSTA.
  • SQL highlighting fixes - Adding "create" keyword and fixing "Mark Occurrences" to recognized '_' as an identifier char.
  • Added an API to highlight individual lines.
  • Removed basic line numbering support and replaced it with a more general "Gutter" component. This component not only renders line numbers, but can display per-line icons (for breakpoints, bookmarks, compiler errors, etc.).
  • The Gutter has built-in bookmark support (which can be toggled on or off). F2/Shift+F2 moves to the next and previous bookmark, respectively. Ctrl+F2 toggles the bookmark for the current line.
  • Renaming of syntax style classes to be simpler.
  • Several bug fixes.

New in RSyntaxTextArea 1.2.3 (Jan 23, 2009)

  • Added "Mark Occurrences." When the caret comes to rest on a new identifier or variable, all occurrences of that identifier or variable will be highlighted. There is an API to toggle this feature on or off.
  • Added hyperlink support to C#.
  • Updated regex searching so '^' and '$' match the beginning and end of lines, respectively.
  • Fixed an issue preventing RTextArea from being serializable.

New in RSyntaxTextArea 1.2.2 (Jan 16, 2009)

  • Fixed a harmless (no effect on user) NPE if setCaretPosition() is called to be on a bracket before the editor is visible (bracket matching code).
  • Fixed an NPE in TextEditorPane if you load() a local file that doesn't yet exist (okay so far, empty file is created), then try to save() it (this is where the NPE occurred - cached encoding was null).
  • RTextScrollPane now has a default constructor to facilitate using it in Matisse in NetBeans.

New in RSyntaxTextArea 1.2.1 (Jan 8, 2009)

  • Fixed a bug that prevented chars such as '[', ']', '{' and '}' from being typed on Macs using certain non-English keyboard layouts (Polish, German).
  • HTML and JSP syntax highlighting now properly recognize multiline attributes.
  • Fixed a small bug when doing a non-regex backwards search for a single char.
  • Removed a workaround for a Java 1.4 bug where the caret does not move to the proper location after an undo or redo. This was causing problems due to earlier code restructuring. While RSTA still supports running in Java 1.4, it will no longer go to great lengths to work around its bugs.

New in RSyntaxTextArea 1.2 (Dec 19, 2008)

  • Knowledge of what programming languages it can highlight has been separated from the editor code and is now loaded dynamically. This allows users to remove support for languages they don't need, thus cutting down on the library size.
  • The context menu is now completely customizable.
  • Some serialization improvements, but not complete yet.
  • HTML and JSP syntax highlighting now render multiline attributes correctly.
  • Fixed an input bug that prevented inputting characters such as '[', ']', '{' and '}' on Macs with non-English keyboard layouts.

New in RSyntaxTextArea 1.1 (Dec 8, 2008)

  • Hyperlinks are recognized and clickable in the editor (in languages that support this feature - currently plain text, C, C++ and Java). Hosting applications can register HyperlinkListeners and respond to users clicking on links (such as by opening a page in a browser).
  • Added TextEditorPane class, which wraps RSyntaxTextArea and adds common features needed by virtually all editors - loading and saving, managing the dirty state of the editor, the file encoding and line terminator.
  • Added ability to load and save remote files via FTP.
  • Added Ruby syntax highlighting.
  • Added highlighting of makefiles.