2014-06-07 12:46:58 +00:00
|
|
|
module BlobHelper
|
|
|
|
def highlightjs_class(blob_name)
|
2014-10-21 07:59:03 +00:00
|
|
|
if no_highlight_files.include?(blob_name.downcase)
|
|
|
|
'no-highlight'
|
2014-06-07 12:46:58 +00:00
|
|
|
else
|
2014-10-21 07:59:03 +00:00
|
|
|
blob_name.downcase
|
2014-06-07 12:46:58 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def no_highlight_files
|
|
|
|
%w(credits changelog copying copyright license authors)
|
|
|
|
end
|
|
|
|
end
|