I’ve been mulling this over for a couple of days and I can’t think of anything that does what you ask … which was honestly a little surprising. I have in my mind that you’re after something like SublimeText 3 … for iOS
Markdown’s pretty ubiquitous, so I’ll set that to one side in that pretty much everything you might consider would have you covered on that one in one way or another.
Apps like Editorial, Ulysses and iAWriter are more word processors than text editors, and whilst they have scripting capabilities (only Editorial for Python), they don’t have that core text focus hat you are probably looking for.
Textastic has excellent Working Copy integration and is actually a text editor, but it isn’t scriptable. Whereas in Editorial (or Pythonista), you could actually run your Python, in Textastic you’re going to have to round trip it elsewhere either on device (probably Pythonista), or to a networked system … in which case you’re going to need SSH and all the integrations you might want around that.
Then of course there’s Drafts. Awesome app, but not quite a text editor (it’s content is focussed on its own database of notes and external retrieval and updates is currently secondary at best). I have some stuff working around the basics of Working Copy, and I have an idea of how to make it work much better with it (some day I’ll have the time to finish my work on that), but even then … not really a place for Python.
From what you described as your requirements, I think the closest possible match is Editorial.
BUT… I’ll offer up some different perspectives.
- Do take a look at Brett Terpstra’s (are we allow to say “drink” if this isn’t an MPU forum?) iOS text editors comparison chart.
- Do consider writing your Python in one place, your Markdown composing elsewhere and maybe even any other text editing options somewhere else again. If you were building something every day (and your last name is not Macgyver), would you rather have a range of tools or a Swiss army knife? Multi-purpose tools are great, but when you find something you are going to work with a lot, think about specialising. It is almost always worth it, certainly on iOS.
- Text editing, and Markdown, doesn’t require a fancy GUI. Depending upon the Python coding you’re doing, that might not either. Maybe using a sophisticated text editor like EMACS or maybe even vi, might be an option for you if you use an SSH client and a remote machine. It could even be something as cheap as a Raspberry Pi zero on the same network.
Just some thoughts. Maybe there’ll be something useful in there somewhere