gitlab-org--gitlab-foss/app/helpers/blob_helper.rb
Zertrin b8fcaa7f41 revert using the extension of the blob to determine the syntax highlighting language
nohighlight functionality for a hardcoded set of filenames is kept
2014-11-18 12:55:22 +01:00

13 lines
273 B
Ruby

module BlobHelper
def highlightjs_class(blob_name)
if no_highlight_files.include?(blob_name.downcase)
'no-highlight'
else
blob_name.downcase
end
end
def no_highlight_files
%w(credits changelog copying copyright license authors)
end
end