Hello. You can't edit it directly in the app. Select file .rpy (or .rpyc) -> File menu -> Save as... And then edit it with notepad or something locally.
Itch is hardly an "unknown" or "untrusted" sight. Sure, mayby some user could put up a virus for people to download, but that has nothing to do with Dinaki putting up their own stuff. The website itself is fine.