Sublime Forum

How to invoke the build-in diff command

#1

I want to invoke the built-in diff command in a plugin. Is this possible? If so, what is the command that I should use? I can pass the path of the two files to the diff command. Thanks in advance.

0 Likes

#2

The diff commands are defined in the diff package. You can grab PackageResourceViewer and check out the source code for the command signature.

0 Likes

#3

Thanks for pointing me in the right direction @FichteFoll. Finally managed to get it to work. Thanks.

0 Likes