summaryrefslogtreecommitdiff
path: root/app/views/snippets
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-27 13:12:58 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-27 13:12:58 +0200
commit78b2fb5de9d96390110f469d057a2081be34a69b (patch)
treec5979da58891523b996597e475ed5a359817973f /app/views/snippets
parentffee5bb090c3723bb57e6858d32e9c34baba9912 (diff)
downloadgitlab-ce-78b2fb5de9d96390110f469d057a2081be34a69b.tar.gz
Add highlight.js support to markdown, snippets etc
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/snippets')
-rw-r--r--app/views/snippets/_blob.html.haml3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/snippets/_blob.html.haml b/app/views/snippets/_blob.html.haml
index e6ae33f38f3..4b571b4ba3a 100644
--- a/app/views/snippets/_blob.html.haml
+++ b/app/views/snippets/_blob.html.haml
@@ -18,8 +18,7 @@
= render_markup(@snippet.file_name, @snippet.data)
- else
.file-content.code
- %div{class: user_color_scheme_class}
- = raw @snippet.colorize(formatter: :gitlab)
+ = render 'shared/file_hljs', blob: @snippet
- else
.file-content.code
%p.nothing_here_message Empty file