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!
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:
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):
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!