There's already a bunch of good code editors for iOS, such as Textastic, Koder and Buffer.
Working Copy is a fantastic combined Git client and text editor, which I've used extensively to edit my own website, and Secure ShellFish from the same developer is a great SSH client, file manager and editor.