Being my first post, I'd like to say that this creation of yours is excellent. I'm glad it off-shot from RText as I needed something very much like this, started coding from scratch, got a good deal ahead, but, unfortunately, ran out of time. Finding this was a blessing
I've spent a day putting together a custom flex file for a personal script language, processed it, and integrated it into my project. It's working very well out of the box, thank you. However, since I'm pressed for time, I can't devote as much of it as I'd like to learning the intricacies any further. The remaining things I want to do is:
1. To incorporate custom folding, specifically starting with "@@" and ending with "!!"; while at the same time, integrating the html folding that's available in RSTA. I tried starting from the Curly fold parser and then doing another take with the HTML folder, but I'm missing something since it's not working. What I did so far was to :
a. Make a custom fold parser. I tried using the property FOLD_TYPE_USER_DEFINED_MIN but it wasn't catching
b. Inserted the constructor for this parser into the FoldParserManager class for my custom syntax style
c. Added a Token property for the FOLD_TYPE_USER_DEFINED_MIN property
d. wrote into the custom flex the regex for this property by doing:
d1. CustomFold = ("@@"|"!!")
d2. {CustomFold} {addToken(Token.FOLD_TYPE_USER_DEFINED_MIN)}
Having only had a day of experience with RSTA and JFlex, I'm pretty sure with all those steps, I botched it completely
2. Make the single and double quote characters the beginnings and ends of a multi-line comment/doc comment, , behaving like the ones Java uses (i.e. "/* */", "/** */) . Also, making the string "<!--" as the start of a line comment which ends with "-->".
3. Find out where I can inject a document filter (or something similar) to replace a bracket with a pair of brackets (i.e. [] for [ or ], {} for { or } etc) as it is inputted. I tried adding it to the TextEditorPane class but something is preventing it from triggering. My original work used a JTextPane and it worked there; could it be because RSTA uses a JTextArea that this is not working? Out of curiousity, what would happen to RSTA if I changed its base class to a JTextPane?
4. Make small changes to the bracket matching code in order to highlight both partner brackets instead of just the remote one. Also, it seems that the bracket partner search only starts when a bracket is found to precede the caret. I'd like to change this to include a search when the caret succeeds a bracket and is not preceded by another bracket. I'll likely be looking for any caret listener RSTA has in its code (if any), but any insight would be welcome
Thanks again for this wonderful project and for any help you can afford me.
