[#160] add support syntax highlighting for c like languages

This commit is contained in:
Alexander Machehin 2013-06-04 17:26:05 +06:00
parent 7faa9e7699
commit dc78b978d4
1 changed files with 7 additions and 6 deletions

View File

@ -9,12 +9,13 @@ Mime::Type.register "text/plain", 'diff'
Mime::Type.register "text/plain", 'patch'
# add rpm spec as mime type for *.spec files
[["text/x-python", ['py'], '8bit'],
["text/x-rpm-spec", ['spec'], '8bit'],
["text/x-csrc", ['h', 'c'], '8bit'],
["text/x-c++src", ['cpp'], '8bit'],
["text/x-diff", ['diff'], '8bit'],
["text/x-markdown", ['md'], '8bit']
[["text/x-python", ['py'], '8bit'],
["text/x-rpm-spec", ['spec'], '8bit'],
["application/x-csrc", ['h', 'c'], '8bit'],
["application/x-c++src", ['cpp', 'cc'], '8bit'],
["application/x-csharp", ['cs'], '8bit'],
["text/x-diff", ['diff'], '8bit'],
["text/x-markdown", ['md'], '8bit']
].each do |type|
MIME::Types.add MIME::Type.from_array(type)
end