GitLab provides syntax highlighting on all files through the Rouge Ruby gem. It attempts to guess what language to use based on the file extension, which most of the time is sufficient.
This a repository to test easily the current status of rouge project fork to support ObjectScript syntax.
It allows to have Ruby environment on docker ready for testing.
For more information the community article is available here.
Clone/git pull the repo into any local directory
git clone https://github.com/lscalese/objectscript-syntax-for-gitlab.git
Open the terminal in this directory and call the command to build and run InterSystems IRIS in container:
docker pull ghcr.io/lscalese/objectscript-syntax-for-gitlab:latest docker-compose up -d
Open http://localhost:9592/objectscript to show the test page with an ObjectScript class sample.
You can put your own objectscript class by a simple copy/paste using this page : http://localhost:9692/csp/irisapp/lscalese.objectscript4gitlab.test.cls. Click submit and the highlighted code will be open in a new page.
Click reset to restore the default test page. The login\password of the web application is the default _system \ SYS credential.