dear Trac developers,
thanks a lot for your great efforts and this wonderful project.
just one syntax coloring request which I would like to see in the next
Trac release:
currently I am patching mimeview/api.py for the following file extensions:
.hxx and .cxx are quite common for C++ header and source files
Adobe Flex .mxml work fine with MIME text/xml
ActionScript .as files work fine with MIME text/x-java
thanks a lot in advance!
michael held
ps: supporting the above mimeview/api.py:308 look for me like:
KNOWN_MIME_TYPES = {
'application/pdf': ['pdf'],
'application/postscript': ['ps'],
'application/rtf': ['rtf'],
'application/x-sh': ['sh'],
'application/x-csh': ['csh'],
'application/x-troff': ['nroff', 'roff', 'troff'],
'application/x-yaml': ['yml', 'yaml'],
'application/rss+xml': ['rss'],
'application/xsl+xml': ['xsl'],
'application/xslt+xml': ['xslt'],
'image/x-icon': ['ico'],
'image/svg+xml': ['svg'],
'model/vrml': ['vrml', 'wrl'],
'text/css': ['css'],
'text/html': ['html'],
'text/plain': ['txt', 'TXT', 'text', 'README', 'INSTALL',
'AUTHORS', 'COPYING', 'ChangeLog',
'RELEASE'],
'text/xml': ['xml','mxml'],
'text/x-csrc': ['c', 'xs'],
'text/x-chdr': ['h'],
'text/x-c++src': ['cc', 'CC', 'cpp', 'C', 'cxx', 'CXX'],
'text/x-c++hdr': ['hh', 'HH', 'hpp', 'H', 'hxx', 'HXX'],
'text/x-csharp': ['cs'],
'text/x-diff': ['diff', 'patch'],
'text/x-eiffel': ['e'],
'text/x-elisp': ['el'],
'text/x-fortran': ['f'],
'text/x-haskell': ['hs'],
'text/x-ini': ['ini', 'cfg'],
'text/x-javascript': ['js'],
'text/x-java': ['as'],
'text/x-objc': ['m', 'mm'],
'text/x-ocaml': ['ml', 'mli'],
'text/x-makefile': ['make', 'mk',
'Makefile', 'makefile', 'GNUMakefile'],
'text/x-pascal': ['pas'],
'text/x-perl': ['pl', 'pm', 'PL', 'perl'],
'text/x-php': ['php', 'php3', 'php4'],
'text/x-python': ['py', 'python'],
'text/x-pyrex': ['pyx'],
'text/x-ruby': ['rb', 'ruby'],
'text/x-scheme': ['scm'],
'text/x-textile': ['txtl', 'textile'],
'text/x-vba': ['vb', 'vba', 'bas'],
'text/x-verilog': ['v', 'verilog'],
'text/x-vhdl': ['vhd'],
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---