Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

saltzmanjoelh

macrumors newbie
Original poster
Sep 8, 2008
2
0
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?
 

HiRez

macrumors 603
Jan 6, 2004
6,265
2,630
Western US
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.
 

saltzmanjoelh

macrumors newbie
Original poster
Sep 8, 2008
2
0
y xcode

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.
 

HiRez

macrumors 603
Jan 6, 2004
6,265
2,630
Western US
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.