Your comments

So, it would be:


1. Open Textastic

2. Press CMD + N to get a new window

3. Type some code

4. Press CMD + S to save and save it as test.html on the Desktop

5. Now add some new code to the already written ..

6. Try to save again


I'm not sure at which point you save it as test.txt and when it then gets moved to test.html.


Do you have iCloud enabled on your Mac? I do.



Did you maybe save it under a file name that contains any special characters? Do you have any other apps running that might access newly created files? 

I tried to follow the steps on my machine and it worked without a problem. Which Mac OS X version do you use? I tried it on 10.8.3.

You can ask the iTunes team for a refund. There's a guide for this at http://gizmodo.com/5886683/how-to-get-a-refund-from-the-app-store

Textastic offers syntax highlighting for many languages including PHP, but it doesn't include compilers or interpreters due to restrictions of iOS.

If you try to preview the php file locally, only the html part will be interpreted by the web view. The PHP part will be ignored.

In order to preview PHP in Textastic, you can upload the file to a test server, open the preview screen, 
and enter the remote url of your test server.

As Dave pointed out above, you also need to add <html debug="true"> to your html document when you do that.

Instead of using the feature in Textastic, you can reference Firebug Lite directly in your html file as described at http://getfirebug.com/firebuglite#Stable:


<script type="text/javascript" src="https://getfirebug.com/firebug-lite.js"></script>


This way it will be loaded with the web page.