Archive for the ‘RText’ Category

RText 2.5.8 Released

Sunday, September 13th, 2015

RText 2.5.8 has been released!  You can get it on SourceForge like you always have been able to, moving forward I’d suggest Windows and Mac users pick up the binary versions on GitHub instead.

The Mac bundle is huge compared to the Windows one because it includes the JRE.

Here’s what’s new in this version of RText:

  • Added syntax highlighting, code folding, and code completion for Less
  • Improved default key bindings on OS X
  • Find/Replace in Files dialogs have a “Ignore these folders” dropdown
  • New files created in Project Plugin tree are not automatically opened by default
  • Added “Find in files from here…” to Project plugin tree
  • Fixed issue with Apple vs. Oracle JREs on OS X
  • Fixed several bugs


SNAPSHOT artifacts are now available

Friday, January 2nd, 2015

Happy New Year!

SNAPSHOT artifacts are now available for both RSyntaxTextArea and RText, thanks to Sonatype.  This will provide folks with an easy way to try out new versions of these libraries before they are “officially” available.

To use the SNAPSHOTs, you’ll first have to reference the Sonatype snapshot repository.  This can be done in a Gradle build script like so:

repositories {
   maven { // Snapshot builds of RSTA artifacts
      url ''

Then you can just declare your dependencies as usual.  It did seem like I had to be explicit about my desire for 2.6.0-SNAPSHOT, otherwise Gradle/Maven would still fetch the 2.5.6 release artifact:

dependencies {
   compile 'com.fifesoft.rtext:fife.common:2.6.0-SNAPSHOT', 'com.fifesoft:rsyntaxtextarea:2.6.0-SNAPSHOT'


RText 2.5.3 Released!

Tuesday, July 22nd, 2014

RText 2.5.3 was released on GitHub!  Precompiled binaries for major OSes are on SourceForge, as usual.  Here’s what’s new:

  1. JavaScript macros now work with Java 8+, in addition to Java 6 and 7 (updates to support Nashorn properly).
  2. Improvements to PHP syntax highlighting.
  3. 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.
  4. Java syntax highlighting updated for Java 8 classes, interfaces, and enums.
  5. SQL: Matching opening/closing parens are now highlighted.
  6. Groovy macros now use Groovy 2.3.3.


RText 2.5.2 Released

Friday, March 14th, 2014

RText 2.5.2 has been released on SourceForge and GitHub!  This release primarily brings the goodness from the RSTA libraries’ 2.5.2 update.  Here’s what’s new:

  • You can now configure RText to use JSHint for JavaScript error checking.
  • Added .htaccess file syntax highlighting.
  • Auto-indentation improved for file types with multiple “languages,” for example, CSS and JavaScript in an HTML file.
  • Updated RSyntaxTextArea libraries to 2.5.2.


RSyntaxTextArea and RText 2.5.1 released!

Wednesday, November 13th, 2013

Both RSyntaxTextArea (and its sister projects) and RText have brand new 2.5.1 releases available on GitHub and SourceForge!  The RSTA updates fixed a couple of bugs that had crept into the library in the 2.5.0 release.  RText (which hasn’t seen an update in a few months) is now using the latest, greatest RSTA libraries, which also means it’s using the slick new search toolbars I blogged about previously.

Check ’em out!

RText 2.0.7 Released

Tuesday, May 7th, 2013

RText 2.0.7 was released last weekend on SourceForge!  Here’s a list of what changed:

  1. Pretty-printing now works for JSON in addition to XML and HTML.
  2. The system console plugin now auto-completes file names on pressing tab.
  3. HTML, PHP, and JSP have new option, “Automatically add closing tags for HTML tags that require them,” as well as enhanced syntax highlighting.
  4. The text editor now includes an option to use the system selection colors for selected text and its background.
  5. The file chooser and File System Tree plugin now include “Paste” option to copy/paste file lists.
  6. Added Visual Basic syntax highlighting.
  7. Various code editor fixes and performance improvements.

Happy coding!


JSON Pretty-Printing

Sunday, February 24th, 2013

If you do any work with JSON, you may well run into scenarios where you’re looking at some data for debugging purposes, but can’t make heads or tails of it because it’s either all on one line, not indented, or otherwise simply poorly formatted.  With the upcoming RText 2.0.7 release, this will no longer be a problem.  Its “Tidy” plugin (now being rebranded to “Pretty Printing”, since it’s a more general term) is gaining JSON pretty-printing support, powered by the jsonbeans library.

You’ll be able to control the indentation style (either tabs, or some number of spaces), as well as the actual format of the output.  The format choices are:

  • JSON:  Strict adherence to the JSON standard, keys wrapped in double quotes.
  • JavaScript:  Formatting appropriate for a JavaScript object – quotes around appropriate values, but not around keys.
  • Minimal:  No double quotes around anything.  Useful if you want the data in as simple of a format as possible, even if it isn’t technically valid.

Simply set up your formatting preferences in the Pretty Printing Options dialog panel:

JSON Formatting Options

JSON Formatting Options

And when editing JSON, simply select Edit -> Pretty Printing.  Simple as that.  Don’t forget that a shortcut can be assigned to this menu item via the “Shortcuts” panel in the Options dialog if you use it frequently.

RText 2.0.6 Released

Saturday, January 26th, 2013

RText 2.0.6 was just released!  Here’s a rundown of the major changes:

Syntax highlighting and code folding for JSON.  Folks doing a lot of work with web applications will appreciate this.

JSON Support in RText

JSON Support in RText

Improvements to the UI when a Substance Look and Feel is installed.  All trees and lists now use Substance’s striping and rollover effects, and colors used in miscellaneous custom components were tweaked to better fit in with the current Substance skin.

Substance in AutoComplete Popups

Substance in AutoComplete Popups

Fixed a ClassCastException when adding a JRE in the Java options panel.  This was bug 3600567, and was accidentally introduced with the last refactoring of the Java language support.

Updated the Turkish and French localizations.  Thanks to Burak and Pat!

A major side effect of the improved Substance support is that compilation is now done in two phases.  RText has always only required Java 1.4, but Substance requires Java 6 or newer (we’re actually shipping with Insubstantial, which is an active fork of Substance, since the original author stopped working on it).  To get around this, all of the “core” RText classes are built with Java 1.4, and all of the classes requiring Substance are built with Java 6; these classes are only referenced from the application via reflection to avoid a hard dependency.  If Java 1.4 or Java 5 is detected, RText will never load anything Substance related.

When will RText drop support for 1.4?  Probably not for awhile, especially when I can easily use functionality in newer versions easily enough via reflection as I’m currently doing (and only then for Substance, opening a browser/system editors for files, and for the scripting API).  And performance improvements are received via simply running in a newer JVM, not from compiling with one.  Perhaps when Java 8 GA is released this September, it might be time to consider moving to Java 5.  🙂

Anyway, the list of new features going into the next release is already growing!  More on that soon.


RText Released

Monday, December 24th, 2012

RText was released earlier this week on SourceForge.  This was a minor release (no real new features) that will nevertheless be a very important update for some users.  Here’s what was new:

  1. Updated to RSyntaxTextArea, which fixes a keyboard issue with non-QWERTY keyboards.
  2. Several Substance skins are now available as LookAndFeels. Thanks to the Insubstantial project ( These Look and Feels are only available when running RText with Java 6 or newer.
  3. Updated the Spanish (Leonardo) and Arabic (Mawaheb) translations.

Basically, this release was just to have an RText that fixed the keyboard issue introduced with RSTA 2.0.5.  Including Insubstantial (i.e. Substance) was just a bonus.  Only very recently had a couple of important issues been fixed that made it usable in a project such as RText.  I’m hesitant to ship Substance with any project, since in my (albeit limited) experience it’s been very touchy (stuff like breaking in *point releases*, not even major ones), but since the core Swing library isn’t really updated any longer, I think things are stable enough these days to give it a try.

RText 2.0.5 Released

Thursday, November 29th, 2012

RText 2.0.5 has been released!  This release brings it up to date with all of the reatures added to RSyntaxTextArea 2.0.5, plus more cool stuff.  Here’s what’s new:

  • Code folding added for HTML, JSP, and PHP.
  • Added NSIS syntax highlighting and code folding.
  • Added a “Projects” docked window. Useful for organizing small programming projects while working in RText.
  • Added code folding and highlighting of multi-line strings for Scala.
  • Added Java 7 features to Groovy highlighting (underscores in numeric literals, binary literals, and new core classes/interfaces/enums).
  • Fixed an issue with CompleteMarkupTagAction and ToggleLineCommentAction conflicting with each other only on *nix (Windows and OS X didn’t have this issue).
  • Fixed possible NPE when editing XML on Linux only (!).
  • RText is now building on OS X once again.
  • Now ships with Groovy 1.8.8, so you no longer have to drop in your own groovy-all-xxx.jar to run Groovy macros in RText.
  • Wildcards are now permitted in the Go To Member dialog.
  • Added keyboard shortcuts for moving through docked window groups (Ctrl+Alt+arrow keys).
  • Updated translations – Chinese (peter_barnes), Russian (Nadiya), Italian (Argaar), German (Domenic), Korean (Changkyoon), Japanese (Josh), and Hungarian (Zityi).

Go check it out!