Dynamic syntax highlighting for custom languages in GitLab CE/EE installations via Monaco hot-patching.
Simply a proof-of-concept project. Not affiliated with GitLab in any way. Execute at your own risk.
Install Node, then run the following commands:
$ npm install
$ npm start
This will open your browser and serve a Monaco editor instance at http://localhost:8080/ with all custom languages listed in languages.js
for demonstration and testing purposes.
Run the following command:
$ sudo ./install-gitlab.sh
Although both the installer script and GitLab/Monaco perform checks when dealing with languages, there are risks when patching a GitLab installation. All changes are client-side so it is not necessary to restart the GitLab server.
Uninstall the patched languages via:
$ sudo ./install-gitlab.sh --remove