Project

General

Profile

Repository revision view - syntax highlighting

Added by Arlo Carreon over 12 years ago

I just want to add certain file extensions to be recognized by the repository plugin. For example the ".inc" extension should be treated as a .php file when syntax highlighting is concerned.

How do I make that change? I have been search through all controllers and helpers. Can't seem to file a place to add that.

Can someone help?


Replies (2)

RE: Repository revision view - syntax highlighting - Added by Dan Charney over 12 years ago

As of this posting,

source:trunk/vendor/gems/coderay-1.0.0/lib/coderay/helpers/file_type.rb@7618#L79

The file has always been called file_type.rb, near as I can tell, so regardless of what version you have, you should be able to find it fairly easily. If you use bash, this should find your copy of this file: ls vendor/*/coderay*/lib/coderay/helpers/file_type.rb

I realize this is an old thread, but it's also the first thing that came up when I first googled the problem myself. Hopefully this helps future Redmine hackers.

    (1-2/2)