Skip to content

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

Notifications You must be signed in to change notification settings

AlexAltea/gitlab-rouge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published