在比较Delphi Form Files的版本时,如何使Beyond Compare忽略某些差异 [英] How do I make Beyond Compare ignore certain differences while comparing versions of Delphi Form Files

查看:267
本文介绍了在比较Delphi Form Files的版本时,如何使Beyond Compare忽略某些差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Beyond Compare(3.1.10版)来比较不同版本的Delphi Form Files,但是我不想看到有关ExplicitTop,ExplicitLeft,ExplicitHeight和ExplicitWidth的差异。

I use Beyond Compare (version 3.1.10) to compare different versions of Delphi Form Files, but I don't want to see differences concerning ExplicitTop, ExplicitLeft, ExplicitHeight and ExplicitWidth.

详细信息:
这些行始终以多个空格字符开头,然后是ExplicitXXX =和一个数字。旧版本的Delphi没有这些行,所以我想忽略这些行添加到最新版本的区别,我也想忽略数字发生变化的差异。

Details: These lines will always begin with a number of whitespace characters, then "ExplicitXXX = " and a number. Older versions of Delphi didn't have these lines, so I want to ignore differences where these lines are added to the newest version, and I also want to ignore differences where the number has changed.

有没有人知道如何做?

编辑:
重复(或多或少):

Duplicate (more or less) of:

如何我是否配置BeyondCompare以忽略注释中的SCM替换文本?

推荐答案


  1. 加载一对DFM文件显示出差异。

  2. 点击会话设置按钮(也称为规则,带有公号图标),或使用会话 - > 会话设置菜单项。

  3. 切换到重要性选项卡,然后单击编辑语法... 按钮打开第二个对话框。

  4. 点击新建... 按钮以打开第三个对话框。

  5. 元素名称选项更改为 Explicit * ,将文本匹配更改为显式(左侧|顶部|宽度|高度)= \d + 并检查匹配字符大小写正则表达式复选框,然后单击确定,然后再次单击确定在第二个对话框中。

  6. 显式* 现在应该出现在原始对话框的语法元素列表中。取消选中它,然后将对话框底部的组合框从仅用于此视图更改为更新会话默认值

  1. Load a pair of DFM files showing the difference.
  2. Click the Session Settings button (aka Rules w/ umpire icon) or use the Session->Session Settings menu item.
  3. Switch to the Importance tab then click the Edit Grammar... button to open a second dialog.
  4. Click the New... button below the top listbox to open a third dialog.
  5. Change the Element Name option to something like Explicit*, change the Text Matching to Explicit(Left|Top|Width|Height) = \d+ and check the Match character case and Regular expression checkboxes, then click Ok, then click Ok again in the second dialog.
  6. Explicit* should now appear in the original dialog's Grammar Elements list. Uncheck it, then change the combobox at the bottom of the dialog from Use for this view only to Update session defaults.

这篇关于在比较Delphi Form Files的版本时,如何使Beyond Compare忽略某些差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆