Using github's linguist to better detect filetypes and to do syntax highlighting.
This commit is contained in:
parent
9ee345750c
commit
5b6019f357
6 changed files with 21 additions and 56 deletions
|
@ -13,8 +13,7 @@
|
|||
.view_file_header
|
||||
%strong= @snippet.file_name
|
||||
.view_file_content
|
||||
%div{:class => current_user.dark_scheme ? "black" : ""}
|
||||
:erb
|
||||
<%= raw @snippet.colorize %>
|
||||
%div{:class => current_user.dark_scheme ? "black" : ""}
|
||||
= raw @snippet.colorize(options: { linenos: 'True'})
|
||||
|
||||
= render "notes/notes", :tid => @snippet.id, :tt => "snippet"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue