How to edit HTML in Google Drive?

23,896

Solution 1

Currently you can't. You can only preview html files, that is preview the code or preview the rendered content, but you cannot natively edit the code. You have two options:

Solution 2

I have just used HTML Editey chrome app

Solution 3

You can do this through file revisions. Hopefully, Google adds another way, but using the revision feature works for me. To revise your file, click the check mark in the Google Drive file list, click more, and then click "Manage revisions...". In the box that pops up, click upload new revision and then you're set.

You may also be able to edit html files stored in google drive through other plugins, but I do not use any at this time to know of them.

Share:
23,896
user3049027
Author by

user3049027

Updated on March 10, 2020

Comments

  • user3049027
    user3049027 about 4 years

    I have hosted a HTML file created on my PC (along with a stylesheet) on Google Drive using the script described here.

    I have given out the link and it seems to be working fine (no reported issues from those I've sent it to).

    I have just discovered a minor omission from the file, I need to add another sentence. This should be ridiculously easy on a PC, I could just open it on notepad!

    I can't find a way to edit it on Google Drive, the only connected apps are the viewer and Docs.

    The viewer, as the name suggests, will only let me view the HTML, and the docs app won't let me save it back to the original file.

    Obviously I could download it then upload again, but from experience it will probably give me a different URL.

    Is there any way for me to do this while keeping the link the same, as I have already given the address out?