The default Ruby wordfile in UltraEdit does not support code folding. Is there a Ruby wordfile for UltraEdit that does support code folding?
Asked
Active
Viewed 690 times
1
-
I've never tried it, but you might check if the one available for download from their website is any better (from http://www.ultraedit.com/downloads/extras.html): http://www.ultraedit.com/files/wf/ruby.uew – Michael Burr May 04 '10 at 14:30
1 Answers
0
The help doc says if code folding is not specified for that extension, it'll default to braces. But that doesn't seem to be the case. I looked in the C/C++ word file and found
/Open Fold Strings = "{"
/Close Fold Strings = "}"
so if that's enough for you just add that to your word file. You can also use other tokens:
/Open Fold Strings = "{" "def" "if" "while" "class"
/Close Fold Strings = "}" "end" "end" "end" "end"
UE is pretty flexible - give it a go!

csherbak
- 9
- 3
-
2This runs into a problem when encountering a statement like print "hello" if friendly. If this is within nested loops or conditionals, the code folding breaks because of the lone 'if'. – sutch Nov 13 '10 at 13:17