【问题标题】:Improved UltraEdit wordfile for Ruby? (code folding)改进了 Ruby 的 UltraEdit 字文件? (代码折叠)
【发布时间】:2010-05-04 14:15:15
【问题描述】:

UltraEdit 中默认的 Ruby wordfile 不支持代码折叠。是否有支持代码折叠的 UltraEdit 的 Ruby wordfile?

【问题讨论】:

标签: ruby code-folding ultraedit


【解决方案1】:

帮助文档说,如果没有为该扩展指定代码折叠,它将默认为大括号。但情况似乎并非如此。我查看了C/C++ word文件,发现

/Open Fold Strings = "{"
/Close Fold Strings = "}"

所以如果这对您来说足够了,只需将其添加到您的 word 文件中。您还可以使用其他令牌:

/Open Fold Strings = "{" "def" "if" "while" "class"
/Close Fold Strings = "}" "end" "end" "end" "end"

UE 非常灵活 - 试试吧!

【讨论】:

  • 遇到 print "hello" iffriendly 这样的语句时会遇到问题。如果这是在嵌套循环或条件中,代码折叠会因为单独的“if”而中断。
猜你喜欢
  • 2011-02-14
  • 2016-10-26
  • 2017-03-10
  • 1970-01-01
  • 2011-10-15
  • 1970-01-01
  • 1970-01-01
  • 2011-08-05
  • 2013-10-29
相关资源
最近更新 更多