summaryrefslogtreecommitdiff
path: root/app/views/projects/blob
diff options
context:
space:
mode:
authorStefan Tatschner <stefan@sevenbyte.org>2014-12-03 15:27:31 +0100
committerStefan Tatschner <stefan@sevenbyte.org>2015-01-15 13:41:11 +0100
commitbf079c24afb8ad2991a4eaf60a71a7bc45dd775d (patch)
treeed6317f84473ea68ef9444b0a2736f305f0a2b75 /app/views/projects/blob
parent377ae460056bb2a4e5824c4f7a3bbcb481e3e38b (diff)
downloadgitlab-ce-bf079c24afb8ad2991a4eaf60a71a7bc45dd775d.tar.gz
Replace highlight.js with rouge-fork rugments
I decided to create a fork of rouge as rouge lacks a HTML formatter with the required options such as wrapping a line with <span> tags. Furthermore I was not really convinced about the clarity of rouge's source code. Rugments 1.0.0beta3 for now only includes some basic linting and a new HTML formatter. Everything else should behave the same.
Diffstat (limited to 'app/views/projects/blob')
-rw-r--r--app/views/projects/blob/_text.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/blob/_text.html.haml b/app/views/projects/blob/_text.html.haml
index 7cbea7c3eb6..f6bd62f239b 100644
--- a/app/views/projects/blob/_text.html.haml
+++ b/app/views/projects/blob/_text.html.haml
@@ -8,6 +8,6 @@
- else
.file-content.code
- unless blob.empty?
- = render 'shared/file_hljs', blob: blob
+ = render 'shared/file_highlight', blob: blob
- else
.nothing-here-block Empty file