diff options
author | Stefan Tatschner <stefan@sevenbyte.org> | 2014-12-03 17:27:31 +0300 |
---|---|---|
committer | Stefan Tatschner <stefan@sevenbyte.org> | 2015-01-15 15:41:11 +0300 |
commit | bf079c24afb8ad2991a4eaf60a71a7bc45dd775d (patch) | |
tree | ed6317f84473ea68ef9444b0a2736f305f0a2b75 /app/views/projects/blame | |
parent | 377ae460056bb2a4e5824c4f7a3bbcb481e3e38b (diff) |
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/blame')
-rw-r--r-- | app/views/projects/blame/show.html.haml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/blame/show.html.haml b/app/views/projects/blame/show.html.haml index bdf02c6285d..c507ecf2e49 100644 --- a/app/views/projects/blame/show.html.haml +++ b/app/views/projects/blame/show.html.haml @@ -26,9 +26,9 @@ = i \ %td.lines - %pre - %code{ class: highlightjs_class(@blob.name) } + %pre{class: 'code highlight white'} + %code :erb <% lines.each do |line| %> - <%= line %> + <%= highlight(@blob.name, line, true).html_safe %> <% end %> |