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

查看:15
本文介绍了使用显示比较结果的比较插件从命令行运行 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.

就像我有一个批处理文件,它做了一些工作,结果是打开记事本++,在比较模式下显示 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..

推荐答案

tl;dr:

命令是Notepad++pluginsComparePlugincompare.exe file1 file2.

详情:

下载比较插件https://bitbucket.org/uph0/compare/downloads/ComparePlugin.v1.5.6.6.bin.zip.从 Notepad++ 中的插件管理器安装比较插件不会安装必要的 exe.我假设您也可以从源代码构建以获取 exe.

Download the compare plugin https://bitbucket.org/uph0/compare/downloads/ComparePlugin.v1.5.6.6.bin.zip. Installing the compare plugin from the plugin manager within Notepad++ does not install the requisite exe. I assume you could also build from source to obtain the exe.

按照自述文件中的手动安装说明进行操作:

Follow the manual installation instructions in the readme:

要手动安装,请复制 ComparePlugin.dll 和 ComparePlugin 子文件夹进入插件目录 C:Program FilesNotepad++Plugins.

To install manually, copy ComparePlugin.dll and ComparePlugin subfolder into the plugins directory C:Program FilesNotepad++Plugins.

对于便携式Notepad++安装,您需要从notepad++目录上方的目录(或exe的绝对路径)运行命令,否则会出现找不到Notepad++.exe的错误.

For a portable Notepad++ installation, you need to run the command from a directory above the notepad++ directory (or with absolute path of exe), otherwise you get an error that Notepad++.exe is not found.

命令如下所示:

>cd C:portappsNotepad++
>cd ..
>Notepad++pluginsComparePlugincompare.exe C:filesfile1.txt C:filesfile2.txt

ufo 的回答让我走上了正轨,但它不包含要运行的命令.

ufo's answer put me on the right track but it did not contain the commands to run.

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

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