Add user_color_scheme class to file_highlight

Prevents an unstyled flash that occurs when we were only applying the
syntax highlighting class in Javascript. Now for these uncached blobs
the server can add the syntax class, and for (possibly) cached fenced
code blocks, the Javascript will add it as needed.
This commit is contained in:
Robert Speicher 2015-08-26 11:34:28 -07:00
parent 7a81dc65d9
commit 54771100eb

View file

@ -1,4 +1,4 @@
.file-content.code.js-syntax-highlight .file-content.code.js-syntax-highlight{ class: user_color_scheme }
.line-numbers .line-numbers
- if blob.data.present? - if blob.data.present?
- blob.data.lines.each_index do |index| - blob.data.lines.each_index do |index|