Sorry you feel that way! I agree that it is difficult to add a new syntax highlighter to RSTA, because of the way it uses JFlex in a non-standard way. But the source code for the editor as a whole uses the same structure as the Swing text package. If you examine the JDK source of javax.swing.text.*, you'll see that RSTA classes are extensions and implementations of what's already there (which isn't to say the Swing text package is straightforward
). And once you have
a highlighter class, calling it from RSTA is easy.
But yes, actually implementing a syntax highlighter is difficult. It's best to contact me directly at robert /at/ fifesoft /dot/ com. One day in the distant future I plan on making an easier way to add highlighting for new languages, it's been on the to-do-list forever, but I haven't gotten around to it because it's not a frequently asked-for feature.