Buggy Synthax Highlighting
Created by: rumpelsepp
As everyone might have noticed the synthax highlighting in gitlab is really buggy. I tend to say that it is unusable most of the time because it highlights almost everything wrong. There has been a little discussion here: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/232#note_622601
The solution for this problem is guessing the programming language with considerations about the filename (maybe the MIME type as well). Such a featureset is covered by pygments and rouge. Unfortunately pygments is a python library. So I suggest using rouge as a replacement for highlight.js. Rouge has support for the redcarpet gem as well.
I decided to put this issue in the issue tracker rather than on feedback.gitlab.com. IMHO this is not feature request but a bug report with a suggestion how to solve it.
Links:
- Documentation: http://www.rubydoc.info/gems/rouge
- Github: https://github.com/jneen/rouge
- As the CSS is compatible to pygments here are some themes: http://richleland.github.io/pygments-css/