I've just started using Google script.
I quickly encountered a problem to which I have not yet found a solution.
The code disappears when writing or pasting a script longer than a page (for which a scroll down is needed).
Here is a screen shot of the problem:
This renders working on a script impossible.
Changing the interface language of Google to English fixed the problem.