user2551560
user2551560

Reputation: 1

Cannot copy script to Google Script Project

I am trying to copy this source http://pastebin.com/s7v5x4jk to a file a in a Google Script project for a spreadsheet. The problem is that not all the text gets copied when I do a copy and paste. Is there a way to upload files to Script Projects or to get around this? How to replicate: Open a Google Spreadsheet, go to Tools->Script Editor and create a new project, try to copy all the text to the file.

Upvotes: 0

Views: 262

Answers (1)

Mogsdad
Mogsdad

Reputation: 45750

You've got one very long line, perhaps that's overwhelming the editor. (There are 132000+ characters in line 10.)

You will able to paste the code into an Apps Script file by putting it through a prettifier first. A better alternative would be to use the development version, which isn't minified.

Upvotes: 0

Related Questions