Commit b8fcaa7f authored by Zertrin's avatar Zertrin Committed by Marc Gallet

revert using the extension of the blob to determine the syntax highlighting language

nohighlight functionality for a hardcoded set of filenames is kept
parent a4e98f0e
module BlobHelper module BlobHelper
def highlightjs_class(blob_name) def highlightjs_class(blob_name)
if blob_name.include?('.') if no_highlight_files.include?(blob_name.downcase)
ext = blob_name.split('.').last 'no-highlight'
return 'language-' + ext
else else
if no_highlight_files.include?(blob_name.downcase) blob_name.downcase
'no-highlight'
else
blob_name.downcase
end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment