0

For some reasons, I decided to open a Javascript file in .html format using Mac's TextEdit.

Instead of loading the .html in text format, as the name TextEdit implied, it rendered the .html file.

Then I did something incredibly stupid. I went to "Format" and "Make Plain Text" and "OK" to "Convert this document to plain text". After that, it ask me:

"Are you sure you want to modify the document in place?" With 3 options

Overwrite, Cancel, Duplicate.

I choose "Cancel".

Here is the kicker. It changed my .html file into .rtf. (I think it should have been named .wtf). It didn't even ask me to save. Is there any chance that I can recover my original .html file?

  • I assume you're not using TimeMachine to create backups? – slhck Jun 3 '15 at 6:54
  • You assumed correctly. :( – some user Jun 3 '15 at 7:00
  • there's no such thing as "html format". html is plaintext code. Just reopen the file and manually save it with an html filetype – Russell Uhl Jun 3 '15 at 12:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.