Archive for the ‘RText’ Category

Syntax Highlighting in ‘Find in Files’ Dialog

Saturday, September 18th, 2010

The latest change pushed to RText’s SVN is: syntax highlighting in the “Find in Files” dialog’s search results:

Syntax Highlighted Search Results

Syntax Highlighted Search Results

This is something I’ve wanted to do forever, but just never got around to it.  While it might not help you write better code, I believe it’s the little “extra” features like this that make an application fun to work with.

RText 1.2.0 Released!

Friday, September 10th, 2010

I’m happy to announce that RText 1.2.0 was just released yesterday!

RText 1.2.0

RText 1.2.0

It’s been a long time coming, almost 6 months since the last release.  There are plenty of new goodies this time around that make it worth updating:

  1. Language support added for C, Java, Perl, PHP, HTML and shell scripting (code completion for all, varying degrees of syntax checking for others).  While no Eclipse by any means, even the simplest of code completion support takes RText to another level of usability.  This is one area that will definitely be expanded moving forward.  Note that the focus is not on code project management, but simply on being able to provide code completion to speed up editing code.
  2. A huge number of usability improvements to the editor component.
  3. Format HTML and XML code with new JTidy integration.  Formatting options are configurable in the Options dialog.
  4. Added ActionScript syntax highlighting.
  5. Added a new option to ignore the extensions “.bak”, “.old” and “.orig” when opening files and determining their type.  This comes in very handy when you’re constantly making backups for some reason, like I do.
  6. “Experimental” translucent search window (Find, Replace) support if you’re running Java 6u10 or newer.  Note that in my testing, the translucency support in the JVM only seems to be reliable starting around 6u16 or so.  This is just a visual gag to make RText seem cooler, but it’s fun nonetheless, and it does have a practical use – make the dialogs translucent when overlapping the main editor window, so you can see any code they overlap.  When and just-how translucent they are is configurable in the Options dialog.
  7. Greatly improved “File System Tree” plugin, allowing you drill down into directories, create new files and folders, etc.  This should have happened a long time ago.  In the next release you should be able to copy, rename and delete files from the tree as well.
  8. Improved performance of file chooser when browsing NFS paths on Windows.
  9. Tons of minor usability improvements.

Upgrade today and see what you think!

Very large push to RText SVN

Saturday, July 31st, 2010

For some reason I’ve been batching up changes to RText, and haven’t pushed anything into SVN in 4 months.  Well, I came to my senses, and it’s all finally there!

There will be 3 main areas focused on in the 1.2 RText release:

  1. Integrating the language support I’ve been blogging about (Java, HTML, Perl, etc.)
  2. Usability improvements
  3. Bug fixes

The first item is already practically done.  I’ve integrated RSTALanguageSupport via a plugin.  I’ve still got a couple more ideas for the latter two items before 1.2 is good to go.

Integrating Language Support into RText

Saturday, May 22nd, 2010

I’ve spent the last week or so doing tedious, but important, stuff – making sure the RSTALangaugeSupport API is robust enough to be used in other applications.  The hard work is starting to pay off: Perl support is almost completely integrated already!

Perl options in RText

Perl options in RText

Here’s RText’s Options dialog, showing all the features related to Perl support that you can currently toggle.  As you can see, you can currently fiddle with both the code completion as well as the on-the-fly syntax checking I recently blogged about.  For the latter, you have to have a Perl install somewhere on your machine.  RText will scan your PATH for a Perl install, and default to using that, but you can change it to another installation if you want.  Still pending is the ability to add modules to the @INC path.

Language support will be fully integrated into all aspects of RText.  For example, compile errors and warnings will show up in the Error Strip component:

Compiler errors in Error Strip

Compiler errors in Error Strip

Also, function descriptions are displayed simply by hovering the mouse over them.  For example, below, my mouse is over the “print” function (sorry screen captures in Windows don’t capture the mouse pointer):

Function descriptions on mouse hover

Function descriptions on mouse hover

Perl is one of the harder languages to integrate, simply because its language support has so many features (runtime compilation, etc.) that others don’t have.  Hopefully other language supports will be integrated into RText shortly.  Stay tuned!

RText 1.1.0 Released!

Tuesday, March 16th, 2010

Hot on the heels of the latest release of RSTA comes a new release of RText.  This time around we have both new features as well as bug fixes and “platform” enhancements (too bad nobody uses the platform except RText!).

The coolest new feature is “Tool support.”  You can now set up “external tools” (e.g. other programs on your system and run them from inside RText.  This allows you to more easily integrate with compilers, tools such as Ant, or any other program you use regularly while programming.  You can even assign keyboard shortcuts to tools, to allow for easy execution.

Adding a New Tool

Below are example screenshots showing a simple Java program being executed within RText:

Selecting a Tool to run

Running a compiled Java class

Task support has been enhanced as well.  In 1.0, any time “TODO” or “FIXME” was found in a code comment, it was assumed to be a task.  Now, users can define what tokens constitute a task themselves.  This allows you to tailor RText to handle your own personal little programming quirks.

Adding a new Task Identifier

All of the enhancements previously blogged about for RSTA also show up in RText 1.1.  This means nice little things such as improved keyboard navigation, and better font selection out-of-the-box on OS X.

Finally, as always, lots of little bugs were squashed and tiny usability enhancements made.  Again, most enhancements these days comes from suggestions from users, so speak up if there’s something you’d like to see in RText or RSyntaxTextArea!  A good place to be heard is over in the forums.

So give this release a shot and see what you think!  The next release will likely sport the currently-vaporware code completion I’ve been working on for a few languages, so stay tuned…

Yet more Improvements to RSyntaxTextArea

Sunday, January 10th, 2010

Happy New Year!  After a nice long break, it’s time to get the ball rolling on the Fifesoft projects again!

First, some low-lying fruit has been picked for RSTA.  You can now toggle whether end-of-line markers are rendered at the end of each line.  This can be useful for things such as seeing extra whitespace at the end of lines.  Here’s a preview of this feature being used in RText, where it is already integrated in SVN:

EOL Markers in RSyntaxTextArea

EOL Markers in RSyntaxTextArea

Also, and perhaps more importantly, there have been improvements in RSTA’s keyboard navigation.  Ctrl+left/right arrow have always skipped words, but until now, it’s used Java’s default “word skip” behavior (e.g. BreakIterator.getWordInstance()).  This isn’t really optimal for skipping “words” in source code, so this functionality has been revamped to behave like Eclipse does.  The only difference is that the caret does not stop at capital letters in camelCaseIdentifiers.  I despise this behavior, and I don’t know why the Eclipse devs think it’s a good idea.  Besides this, double-clicking on a word does a better “select word” for source code than before.  These are little things that make a big usability difference.

Finally, external tool support is being added into RText.  This will allow you to run things such as Ant, compilers, or whatever else from directly inside RText.  Nothing really to show at the moment though, just the framework has been put in.

RText 1.0.0 Released!

Saturday, December 5th, 2009

It’s been a very long time coming, but RText 1.0 has finally been released!  Since it’s been production quality for awhile now (I’ve used it at work, across multiple OS’s, for years now), I decided to give it the credit it deserves.

Cool stuff in the 1.0 release include:

  • Cleaned up the main window – removed some unnecessary borders around components (Swing is bad at that sort of thing), and modernized the appearance of “dockable windows” (the windows the plugins live in).
  • Updated to the latest RSyntaxTextArea release.  This brings highlighting support for Scala, Delphi and BBCode, auto-insertion of closing curly braces in C-style languages, auto-completion of closing tags in XML, and a default color scheme that’s easier on the eyes for markup languages.
  • A spell checker was added.  It uses Jazzy and supports American and British English out-of-the-box.  Spelling errors are squiggle-underlined, and a focusable tool tip allows the user to correct the spelling error, add the word to a user dictionary, or ignore the word (just like in Eclipse).  I’m particularly proud of this new feature.
  • An optional “Tasks” window displays all instances of “TODO” and “FIXME” in your code comments for all opened files, like in Eclipse.
  • The file chooser now lets you open files in the system default viewer or editor via RMB -> Open In… -> System Viewer/Editor.  This feature requires Java 6.
  • Improved the “Split Window” view.  While the default is the Tabbed View, “Split Window” is probably the second-most popular view in RText.  The file list is now a real “dockable window” so it integrates into the rest of the UI like it’s supposed to now.  It also now has a context menu for the files in it (save, close, file properties, etc.).
  • Big code reorganization that doesn’t really show in the application itself, but hopefully makes the source a little better organized.

There’s plenty to do for 1.1, not the least of which is to bring some of the localizations back up to date (they really fell behind with this release).  I also plan to add “External Tool” support – assign a keyboard shortcut to your favorite application!

Give it a try and see what you think!  Feedback, criticism, and everything else is welcome in the forums.

Breadcrumb Bar Nearly Done

Sunday, October 4th, 2009

The breadcrumb bar I blogged about earlier is nearly done.  I managed to mimic the behavior seen in Vista’s breadcrumb bars, clicking outside of the “button” area turns the breadcrumb bar into a text field for manually typing a file path.  Even better, it offers suggestions as you type!  Here’s how it’s looking in RText’s file chooser dialog:

Using the Breadcrumb Bar

Using the Breadcrumb Bar

Morphing into text field with autocomplete

Morphing into text field with autocomplete

This is much more powerful than the combo box with the directory hierarchy that was there previously.  Note that if too many folders are in a directory to be listed in a single menu, there are arrows at the top and bottom of the menu, allowing you to scroll through the entire list.  The menu also responds to the scroll wheel on the mouse.  I’ve seen this behavior on OS X, on a Macbook where screen space is limited (or you just don’t want a menu to get too long).

This component should honor RTL locales, as well as look good in all LookAndFeels (tested in all the standard ones, including Nimbus, which, as always, took a little work to get looking good).  As always, check it out from RText’s Subversion repository if you want to see how it is implemented.

Breadcrumb Bar in RText

Saturday, September 12th, 2009

Progress has been very slow the last couple of weeks, unfortunately, but there has been a little bit of work going on.

The most exciting thing is definitely the addition of a breadcumb bar to RText’s file chooser.  The appearance of this component tries to mimic Vista’s breadcrumb bar in Windows Explorer.  Things are looking good so far:

Breadcrumb Bar

Breadcrumb Bar

It still needs to handle runtime LaF changes properly, however.  I’m also toying with having it “transform” into a text field when you click on any empty space at the end of the component, like Vista does.  On an Enter keypress (or focus lost), it morphs back into a breadcrumb bar.  It’s a very nice feature.  Check out the current progress in SVN.

Besides that, not much has happened, save for some small progress on TokenMakerMaker.  I’ll be sending a preview to those interested in testing it very soon hopefully.  I also plan to eat my own dog food, and use it to generate some TokenMakers for new languages for the next RSTA release!

RText 0.9.9.8 Released

Sunday, March 8th, 2009

RText 0.9.9.8 was released last week!  This update adds support for all the cool new features added to RSyntaxTextArea since the last release, such as bookmarking, mark occurrences, improved auto-indentation, and PHP highlighting.  Grab it today and try it out!

RText has slowly developed over several years now, and to date has been one of those unfortunate apps to never see a 1.0 release, despite it being completely functional with few (if any) issues.  However, seeing as it’s now functionally complete, that may be changing.  I hope to bring many of the localizations up-to-date (some of which have fallen behind as of late) and do a fair amount of code cleanup for 0.9.9.9.  Post-1.0, there are no concrete plans yet.  The source may (finally) be updated to use Java 5 features, however there’s no real rush on that since there’ll be no visible improvement for the user.  Another idea is giving the UI a little kick in the pants.  I think it’s got a nice, clean interface, but desktop UI development has gotten a lot flashier as of late, and it wouldn’t hurt RText to jump on that bandwagon…