syntax highlighting more files in xcode
So I use XCode. I really do. And I kinda like it. But one thing I hate is that there are files it doesn’t want to highlight as Ruby. This has been discussed elsewhere, but I needed to be able to find it more quickly. Here is how you change that. You need to edit the file: /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Versions/A/Resources/Standard file types.pbfilespec. You want to find these two lines:
Extensions = (rb,rbw);
MagicWord = ("#!/bin/ruby", "#! /bin/ruby", "#!/usr/bin/ruby", "#! /usr/bin/ruby", "#!/usr/local/bin/ruby", "#! /usr/local/bin/ruby");
And change them to:
Extensions = (rb,rbw,rake);
MagicWord = ("#!/bin/ruby", "#! /bin/ruby", "#!/usr/bin/ruby", "#! /usr/bin/ruby", "#!/usr/local/bin/ruby", "#! /usr/local/bin/ruby", "#!/usr/bin/env ruby");
Also, find:
Extensions = (shtml, jsp, rhtml);
And change it to:
Extensions = (shtml, jsp, rhtml, erb);
0 comments
Jump to comment form | comments rss [?]