在UltraEdit中如何查看对应的'('和')'

In UltraEdit how to see the corresponding '(' and ')'

在 Notepad++ 和 SQLDeveloper for writing SQL 关于 '(' 和 ')' 中显示了相应的。还有')'太多会显示红色。

是否可能在 UltraEdit (23.10.0.1) 中也有此功能,如果是,如何实现?

在下面 link 请参阅 SQLDeveloper 中的示例打印屏幕,其中蓝色显示相应的,红色显示太多:http://prntscr.com/cq2l8n.

在 UltraEdit 中,必须启用配置设置启用自动括号匹配

这个设置可以在打开高级-Settings/Configuration后在配置中找到

  • Editor - Braces / strings with UE for Windows v23.20 / UES v16.20 and later versions;
  • 编辑器显示 - 大括号匹配 与 UltraEdit v23.10 / UES v16.10 和以前的版本。

此外,活动文件必须是语法突出显示的语法语言定义,通常包含

/Open Brace Strings = "{" "(" "["
/Close Brace Strings = "}" ")" "]"

默认安装语法高亮 *.sql 文件是 word 文件 mysql.uew。它包含如上所示的大括号字符串定义。如果 wordfile 不包含打开和关闭大括号字符串定义,那么那些 open/close 大括号字符串也是内部默认值。

wordfile 中定义的 open/close 大括号字符串可由用户自定义,因为整个 wordfile 都可以自定义。

自定义一个已经用过的wordfile打开高级-Settings/Configuration-编辑器显示-语法高亮,select语言分别安装wordfile进行自定义,点击使用按钮 打开 并使用按钮 取消 关闭配置对话框。然后在打开的word文件中进行修改并保存。

更改立即生效,从刚刚编辑的 wordfile 切换到根据编辑的语法语言显示的文件可以看出。底部的状态栏显示活动文件中的活动插入符号位置当前活动的语法突出显示语言,其名称在应用的 wordfile 中定义。

例如html.uew我用于语法高亮HTML的文件包含:

/Open Brace Strings = "<a" "<acronym" "<b>" "<b" "<body" "<button" "<caption>" "<caption" "<dd>" "<dd" "<dir>" "<dir" "<div>" "<div" "<dl>" "<dl" "<dt>" "<dt" "<em>" "<em" "<font" "<form" "<frameset" "<h1>" "<h1" "<h2>" "<h2" "<h3>" "<h3" "<h4>" "<h4" "<h5>" "<h5" "<h6>" "<h6" "<head>" "<header>" "<i>" "<i" "<iframe" "<kbd>" "<kbd" "<li>" "<li" "<map" "<noframes>" "<noscript>" "<ol>" "<ol" "<option>" "<option" "<p>" "<p" "<pre>" "<pre" "<script>" "<script" "<select" "<small>" "<small" "<span" "<strong>" "<strong" "<style>" "<style" "<sub>" "<sub" "<sup>" "<sup" "<table>" "<table" "<td>" "<td" "<textarea" "<th>" "<th" "<title>" "<tr>" "<tr" "<tt>" "<tt" "<u>" "<u" "<ul>" "<ul" "<var>"
/Close Brace Strings = "</a>" "</acronym>" "</b>" "</b>" "</body>" "</button>" "</caption>" "</caption>" "</dd>" "</dd>" "</dir>" "</dir>" "</div>" "</div>" "</dl>" "</dl>" "</dt>" "</dt>" "</em>" "</em>" "</font>" "</form>" "</frameset>" "</h1>" "</h1>" "</h2>" "</h2>" "</h3>" "</h3>" "</h4>" "</h4>" "</h5>" "</h5>" "</h6>" "</h6>" "</head>" "</header>" "</i>" "</i>" "</iframe>" "</kbd>" "</kbd>" "</li>" "</li>" "</map>" "</noframes>" "</noscript>" "</ol>" "</ol>" "</option>" "</option>" "</p>" "</p>" "</pre>" "</pre>" "</script>" "</script>" "</select>" "</small>" "</small>" "</span>" "</strong>" "</strong>" "</style>" "</style>" "</sub>" "</sub>" "</sup>" "</sup>" "</table>" "</table>" "</td>" "</td>" "</textarea>" "</th>" "</th>" "</title>" "</tr>" "</tr>" "</tt>" "</tt>" "</u>" "</u>" "</ul>" "</ul>" "</var>"

因为 UltraEdit 作为一个非常强大的通用文本编辑器,不是为特定语言设计的,所以没有针对 SQL 或任何其他语言的语法 检查 功能,因此放置了一个括号错误的地方并不像 SQLDeveloper 那样特别突出显示。

自 UltraEdit for Windows v20.00 和 UEStudio v14.00 起,可以在 Manage ThemesBrace Strings 中自定义突出显示的文本前景色和背景色 Brace Strings =52=] 选项卡 Editor 上的对话框,其中包含项目 Brace Highlight.

即使在配置中启用了活动文件的大括号突出显示,如果活动文件上没有活动的语法突出显示,也会禁用活动文件的大括号突出显示。