从命令行运行NotePad ++,比较插件显示比较结果 [英] Running NotePad++ from Command line with Compare Plugin showing compare result

查看:1457
本文介绍了从命令行运行NotePad ++,比较插件显示比较结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找到一种方法来从命令行调用notepad ++,比较插件显示比较结果,提供我传递2个文件名,我想比较。

I am trying to find a way to call notepad++ from command line with compare plugin showing the compare result providing I pass 2 files name which I want to compare.

想象我有一个批处理文件,它做一些工作,结果是打开notepad ++显示2个文件在比较模式。 (是,安装了比较插件)

Think like I have a batch file, which does some work and result is opening notepad++ showing 2 files in compare mode. (Yes, compare plugin is installed)

如果任何人有任何其他建议,使用任何其他编辑器或软件也欢迎..

If anyone has any other suggestion to using any other editor or software also welcome..

推荐答案

有一个工具 NppCompareLoader 做你想要的。只需将其放在N ++安装文件夹中。我使用它多年作为差异查看器TortoiseSVN和TortoiseGit,因此你应该肯定能够从命令行调用它。

There's a tool called NppCompareLoader doing exactly what you want. Simply drop it in the N++ installation folder. I'm using it since many years as a diff viewer for TortoiseSVN and TortoiseGit, thus you should certainly be able to call it right from command line.

/ EDIT

自(非官方)比较插件版本1.5.6.6 上面提到的额外加载器不再需要了。插件中已经包含了一个插件。下面是关于change-log片段:

Since the (unofficial) Compare-plug-in version 1.5.6.6 the additional loader mentioned above isn't required anymore. There's already one included in the plug-in. Here's the regarding change-log fragment:


  • 新:Loader用于使用N ++作为外部diff查看器(例如在TortoiseSVN,TortoiseGit, )

这篇关于从命令行运行NotePad ++,比较插件显示比较结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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