View Full Version : Xcode code coloring
Sep 8, 2008, 02:36 PM
I want to program my rails apps in xcode but the .htm.erb files dont have any code coloring. Does anybody know how to add it to those file types?
Sep 8, 2008, 05:23 PM
Why do you want to use Xcode for Rails? Of course I'm not saying you can't, but in my experience Xcode is not that great for anything outside of C/C++/Objective-C development. It may support other languages and frameworks, but it's really built around a C-based, native desktop application target. What you could do is set an external app as the editor for code files. For example, TextWrangler or TextMate, which do have good support for Ruby/Rails syntax. Or you could just use those for the whole project and cut Xcode out.
Sep 9, 2008, 12:29 AM
I currently use netbeans and is amazing. but, I want to get used to xcode for when i start making iphone apps and it would be nice to keep my different IDEs down to a minimum.
Sep 9, 2008, 02:47 AM
I currently use netbeans and is amazing. but, I want to get used to xcode for when i start making iphone apps and it would be nice to keep my different IDEs down to a minimum.I can understand that, but really, I don't think it's good for Ruby/Rails. You certainly can't take advantage of everything it has to offer (you won't be using Interface Builder, or the model designer, for a couple things). Plus, AFAIK you can't use the build system for Rails, I think you'll end up spending a lot of time in the Terminal anyway. I know a lot of people are really happy with TextMate for Rails development, I use it for Python+Django myself.