Smultron is an easy to use and elegant iCloud text editor for iPhone and iPad
You can quickly edit a web page, to-do list, script, novel or any kind of text and you have all your open documents easily accessible.
You can store your documents in iCloud so you can access them on all your mobile devices - iPhone, iPad and iPod touch - and also on the Mac version of Smultron.
For more advanced uses Smultron has syntax coloring for over 90 languages, line numbers and many, many more features.
Smultron for iPhone and iPad only costs US$ 2!
You can get it in App Store
If you have iCloud documents activated then Smultron by default uses iCloud to save your documents. You can turn it off in Settings under Smultron and then the documents are saved locally on your device. If you later turn on iCloud all your documents are uploaded to iCloud automatically.
You do it choosing the tools menu from the top right corner and then tap on the name and write the new name and press Done.
You do it with the normal swipe gesture (right to left) in the document list. If you are using iCloud you can also delete documents in the normal iCloud settings panel.
Smultron don't use tabs in the normal sense but rather always four spaces. And opened documents are automatically converted to use spaces so you can insert a "tab" by tapping space four times.
Smultron saves new documents with the standard Mac OS X/Unix line ending. Smultron finds which text encoding it should use automatically but if you want it to always use UTF-8 you can change it in Settings under Smultron.
Smultron finds which syntax definition it should use for your document automatically using the file extension and also looking into the file to see if it e.g. has a #!/bin/sh on its first line. It has support for the same syntaxes as Smultron for Mac.