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
def highlightjs_class(blob_name)
if blob_name.include?('.')
ext = blob_name.split('.').last
return 'language-' + ext
if no_highlight_files.include?(blob_name.downcase)
'no-highlight'
else
if no_highlight_files.include?(blob_name.downcase)
'no-highlight'
else
blob_name.downcase
end
blob_name.downcase
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