You play back a macro by calling RSTA's playbackLastMacro() method. The macro-related methods are on the parent class RTextArea.

You play back a macro by calling RSTA's playbackLastMacro() method. The macro-related methods are on the parent class [url=http://javadoc.fifesoft.com/rsyntaxtextarea/org/fife/ui/rtextarea/RTextArea.html]RTextArea[/url].

I meant the macro xml files. If I save them and open them as a normal "file" I just geTt xml code. My question is if there is a method or class I dunno which converts the XML file to a "normal" text so the user can see easily what he did

I meant the macro xml files. If I save them and open them as a normal "file" I just geTt xml code. My question is if there is a method or class I dunno which converts the XML file to a "normal" text so the user can see easily what he did

java code:

If by "parsed code" you mean squiggle underlining for syntax errors, then no, that doesn't come automatically. You have to use RSTALanguageSupport and enable it on the RSTA instance, as described in the project's readme file:

If by "parsed code" you mean squiggle underlining for syntax errors, then no, that doesn't come automatically. You have to use RSTALanguageSupport and enable it on the RSTA instance, as described in the project's [url=http://svn.fifesoft.com/viewvc-1.0.5/bin/cgi/viewvc.cgi/RSTALanguageSupport/trunk/readme.txt?view=markup&revision=654&root=RSyntaxTextArea]readme file[/url]:

With the built-in Java syntax highlighting, only the keyword "return" is painted with TokenTypes.RESERVED_WORD_2. It's highlighted (possibly) differently because it denotes an exit point for a method, which users may like to make stand out over other keywords.

More generally though, each language is free to use the two different keyword types however they want (perhaps some language indeed has two different logical types of keywords), but for the built-in languages, I believe RESERVED_WORD_2 is either used for "return" only (C, C++, Java, etc.), or not used at all.

With the built-in Java syntax highlighting, only the keyword "return" is painted with TokenTypes.RESERVED_WORD_2. It's highlighted (possibly) differently because it denotes an exit point for a method, which users may like to make stand out over other keywords.

More generally though, each language is free to use the two different keyword types however they want (perhaps some language indeed has two different logical types of keywords), but for the built-in languages, I believe RESERVED_WORD_2 is either used for "return" only (C, C++, Java, etc.), or not used at all.