You are here: PSPad forum > English discussion forum > Scripting : Text Diff

Scripting : Text Diff

Goto Page: 1 2 Next

#1 Scripting : Text Diff

Posted by: pythonui | Date: 2015-11-03 05:55 | IP: IP Logged

Hello,

Is this possible to call 'Text Diff with this file' from script ?

--
Thanks

Options: Reply | Quote | Up ^


#2 Re: Scripting : Text Diff

Posted by: pspad | Date: 2015-11-03 06:23 | IP: IP Logged

Run PSPad action aDiffFile using
runPSPadAction(ActionName: string)

I know, the action isn't listed in the scripting.txt or help.
To see all actions go to program settings / KeyMap and press Direct edit button

Options: Reply | Quote | Up ^


#3 Re: Scripting : Text Diff

Posted by: pythonui | Date: 2015-11-03 06:57 | IP: IP Logged

Thanks for answer smiling smiley

Options: Reply | Quote | Up ^


#4 Re: Scripting : Text Diff

Posted by: pythonui | Date: 2015-11-06 06:15 | IP: IP Logged

Hello,

Is there any function that takes the input as two file names and return with the 'Text difference' ? (Really useful function for automate text difference)

--
Thanks

Edited 1 time(s). Last edit at 2015-11-06 06:15 by pythonui.

Options: Reply | Quote | Up ^


#5 Re: Scripting : Text Diff

Posted by: pspad | Date: 2015-11-06 06:36 | IP: IP Logged

What is the usage? Can you give me any example?

Options: Reply | Quote | Up ^


#6 Re: Scripting : Text Diff

Posted by: pythonui | Date: 2015-11-06 06:43 | IP: IP Logged

Hello,

I have been using 'Git' for version control. I need to see the difference of last version file and current version file so firstly my script take the last version file from 'Git' and save it in current directory. So after this I need to use 'Text Diff' functionality of PSPAD to see the difference between these two files.

--
Thanks

Edited 1 time(s). Last edit at 2015-11-06 06:45 by pythonui.

Options: Reply | Quote | Up ^


#7 Re: Scripting : Text Diff

Posted by: pythonui | Date: 2015-11-06 08:40 | IP: IP Logged

Actually I don't want to integrate any other diff tool in PSPAD because we have good diff tool in PSPAD.

Options: Reply | Quote | Up ^


#8 Re: Scripting : Text Diff

Posted by: pspad | Date: 2015-11-06 08:57 | IP: IP Logged

I will add scripting support.
I don't know how I will realize it yet. There are 2 ways:
1. function with 2 editor objects as parameters
2. function with 2 filenames as parameters

Options: Reply | Quote | Up ^


#9 Re: Scripting : Text Diff

Posted by: pythonui | Date: 2015-11-06 09:27 | IP: IP Logged

Yes...thanks

I think first would be the great !

--
Thanks

Options: Reply | Quote | Up ^


#10 Re: Scripting : Text Diff

Posted by: pythonui | Date: 2015-11-06 10:53 | IP: IP Logged

I think second one also important as first one ! (Thought)

Options: Reply | Quote | Up ^


Goto Page: 1 2 Next





Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR