Support adding custom Rouge lexers outside of Rouge/Gitlab installation.
Description
Currently if we want syntax highlighting support for a new language we are dependent on waiting for rouge to be updated. In addition, some projects may define custom file types with a custom syntax. Highlighting for these is currently not possible (to my knowledge).
It would be greatly beneficial to allow GitLab users to add custom lexers without having to modify the Rouge or GitLab installation.
Proposal
This request proposes being able to place custom lexer .rb
file into a predetermined path that GitLab includes at startup and adds to rouge
's available lexers for highlighting. This location should be a subfolder within /var/opt/gitlab/
, /var/log/gitlab/
, or /etc/gitlab
so that it can be accessed by Docker uses.