Sorting text

Questions on using RText should go here.

Moderator: robert

Sorting text

Postby osullic » Mon Nov 26, 2012 2:19 pm

Hi,

Is it possible to automatically sort lines of text alphabetically in RText?

Thanks
osullic
 

Re: Sorting text

Postby robert » Tue Nov 27, 2012 3:29 am

Sure, via Macros -> Sort Lines. This is a sample JavaScript macro and requires Java 6 or newer to work.

You can see how it's implemented, so you can use it as an example to create your own macros, via Macros -> Edit Macros -> Double-clicking on "Sort Lines", and clicking the "Edit Script" button in the popup menu. This is the "live" copy of the script that is executed when you select the "Sort Lines" menu item.
User avatar
robert
 
Posts: 788
Joined: Sat May 10, 2008 5:16 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 0 guests

cron