It's 2019 – there are now websites that can run desktop-class code editors:
Yep, those two sites are running forks of Visual Studio Code. Not just Monaco but actual VSCode.
On the other hand, the editing experience on GitHub's web interface leaves a lot to be desired:
Simply put: