I found a useful diff script and I adapt it to fill my need, this script is intended to be used in the action menu and compare the text of the current document with the text on the clipboard, in the future I want to create it an UI that allow to select the two documents to compare, if someone want to help, it would be great.
Edited to add the link of a repo:
Ole made a great workflow for Editorial that has a nice UI. I just modified it for my own use earlier this week, I'd start there.
Thanks a lot @pfcbenjamin I'm gonna check it to keep improving this
Out of curiosity... why create an HTTP server instead of just using
In previous versions of Pythonista the server was the only way to show dynamic content, so perhaps many examples persist... but IIRC that method fails for example when wifi is disabled.
Hi JonB, It sounds like a great idea. Would you be willing to submit a pull request?
Great @JonB, as I mention before, I found the code, I just want to improve it, actually i'm learning python so I took too long to implement the improvements that I would like this script have. What you say i't a great Idea, but it would be nice to have an HTTP server that show the differences maybe in a pc browser just from your iPhone, maybe having an iPad this is not important but the iPhone screen it's small and seeing the differences of a file in a bigger screen would be great.