I’m still making progress with code folding support in RSyntaxTextArea. Several visual bugs were squashed (current line highlight, matched bracket painting when toggling folds), as well as a couple of “real” issues with the functionality. The coolest thing that’s been added is folding support for XML:
Again, the actual rendering of the folded lines (color, the annotation at the end, etc.) is subject to change. There are now also ways to do various folding stuff in the editor’s popup menu:
I’ll give these actions keyboard shortcuts moving forward, like those for Cut, Copy, etc.
Finally, note that, for any folded region, hovering the mouse over the “+” icon gives you a preview of the folded section, over-top where it would be in the editor:
Unfortunately, Ctrl+Print Screen in Windows doesn’t capture the mouse pointer, but you get the point!
Again, please try all this out by grabbing the latest from SVN! Just call “textArea.setCodeFoldingEnabled(true)” and start tinkering with it. Let me know any and all bugs you find!