AlexAltea / gitlab-rouge

Static syntax highlighting for custom languages in GitLab CE/EE installations via Rouge hot-patching.

Home Page:https://gitlab.com/AlexAltea/gitlab-rouge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gitlab-rouge

Static syntax highlighting for custom languages in GitLab CE/EE installations via Rouge hot-patching.

Simply a proof-of-concept project. Not affiliated with GitLab in any way. Execute at your own risk.

Usage

Install Rouge, then run the following command:

$ rougify -r ./lexers/mylang.rb <path/to/script.mylang>

Installation in GitLab

Run the following command:

$ sudo ./install-gitlab.sh

Although both the installer script and GitLab perform checks when dealing with Rouge, there are risks when patching a GitLab installation. Additionally, restarting GitLab incurs in few seconds of downtime.

Uninstall the patched lexers via:

$ sudo ./install-gitlab.sh --remove

Testing

Run the following command:

$ ./test.sh rougify

About

Static syntax highlighting for custom languages in GitLab CE/EE installations via Rouge hot-patching.

https://gitlab.com/AlexAltea/gitlab-rouge


Languages

Language:Ruby 64.1%Language:Shell 35.9%