Unfortunately there's no "easy" way to toggle whether the Java highlighting is case sensitive per se. You can get around this in one of the following two ways, however, in order of increasing difficulty:
- Download TokenMakerMaker from RSyntaxTextArea's SVN repository and use that to create a clone of Java syntax highlighting. It should be very easy to add all keywords, data types, and comment types. Note that TokenMakerMaker has been revisited since that blog entry and has more features now than it did then (I plan on creating a new blog entry about its new features soon).
- Build your own version of RSyntaxTextArea with the Java highlighting modified to not be case sensitive. To do this, download the RSTA source and JFlex. Then, modify org/fife/ui/rsyntaxtextarea/modes/JavaTokenMaker.flex so that it includesan "%ignorecase% statement between its existing "%unicode" and "%type ..." statements near the top of the file, like so:
- Code: Select all
Then, follow the instructions at the top of the .flex file on how to build the corresponding .java file via JFlex and modify it by hand to add the final tweaks necessary for it to work in RSyntaxTextArea.
I know the second item sounds daunting, but it really isn't! Though I do think the TokenMakerMaker route might be the best solution for you. Besides a new blog post about its new functionality, I also plan on making a pre-compiled version available soon as well (currently you must build and/or run it from source).