Syntax highlighting and version control for Scrips

In 2017 a part of the question was already asked [1]. Today I can’t see Scrips in the filesystem. For articles there is a nice solution with API [2].

We need to use version controlling for our Scrips. At the moment we copy/paste the sources to Gitlab.
One idea is to replace the editor with another one that is capable of interacting with gitlab. This way we get syntax highlighting in place, too.
Another idea is to use an IDE and push the code directly to the database. This way one miss the direct feedback from th RT-UI.

Are there already solutions or other ideas?
How do you do version controlling?

[1] Save Scrips to version control
[2] Articles and gitlab/hub?

Depending on how much hacking you want to do (you could also do this for Articles) you could overlay the Scrips/Articles edit pages with your own versions that check into Git changes or some other variant, or even have a “pull from gitlab” button added to the UI that updates the content and then you still submit it for the UI feedback