21

I have text files on Google Drive that do not end with the .txt suffix (such as: .r, .bas, .awk...).
I want to view them using the Drive Notepad app, but it does not recognize the files as text.
Is there a way I can get these files to be recognized as text?

  • It seems to be doing it for me already. I've tested uploading a file called file.arb using the webui - it renames it to file.arb.txt and renaming it back seems to just leave it associated as a text type file. The desktop client dosen't seem to work for me, I'll test it once I manage to get it to, and post an answer if so – Journeyman Geek Oct 21 '13 at 6:51
  • Same question also here: webapps.stackexchange.com/questions/66776/… – Liviu Sep 2 '14 at 7:08
16
+50

If you just want to view the files you can do the following:

  1. Save the file with a .txt extension, i.e. filename.bat becomes filename.bat.txt
  2. Add it to google drive
  3. Remove the .txt extension, filename.bat.txt goes back to filename.bat

Google determines the context type based on the extension and retains that through future file renamings, so you'll be able to view it even after changing back to the original extension.

  • 1
    Well the best thing is if i can edit it straight from google drive. I thoght of the option of adding ".txt" to the end but i am looking for something more elegant – eliavs Oct 21 '13 at 5:44
  • well, the I would suggest going to the settings, upload settings, and select convert uploads to google docs format. That way, if you ever needed them to be in a text format again, then save them as a text file. That way you could edit them all you want. – CitizenX Oct 22 '13 at 6:12
1

From Support (Drive Notepad) :

If you want to open another type of file you can request it in the Google+ community for Drive Notepad Users.

For only viewing, you can use on Chrome the extension CodeViewer.

An alternative commercial editor, Neutron Drive is not free ($28/year), but it integrates very well with Google Drive.

  • I downloaded codeViewer to chrome but while i am in google drive and try to "open with" i cannot see an option to open the file with codeViewer – eliavs Oct 16 '13 at 19:05
  • I have no personal knowledge of CodeViewer. You might need to google for usage information. – harrymc Oct 16 '13 at 20:13
  • OK so codeViewer openes only certain file (not the ones i have) – eliavs Oct 17 '13 at 5:07
  • I checked the Google+ community fore Drive notepad users. and a few have asked for the ability to open any file. i dont understand why this is not the default – eliavs Oct 17 '13 at 5:09
  • Me neither. To use notepad for the moment, all you can do is add your voice to the ones demanding this option, or suggest that notepad become open-source. – harrymc Oct 17 '13 at 5:41
1

You can use anyfile notepad drive app. Link to the app You can also install it directly from google drive (connect apps to drive).

After installation, right click on the file and from open with menu, select anyfile notepad. Then you need to authorize. That's it!

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.