- loading...
TextMate theme for RadRails
UPDATE: Vista ClearType fonts available now. I’ve also added instructions for changing fonts in RadRails if you cannot install Consolas, below.
RadRails comes with one theme: white background, black foreground. A few nice shades of markup. Lovely.
Want a little more excitement? Perhaps you want to feel like your using TextMate, even though it costs 30€ and won’t run on your machine anyway?
What you need is the TextMate-theme for RadRails. My friend Brett devised this and gave it to me during Railsconf. Understand this with me – he drove 15 hours from southern USA to Chicago. I flew 20 hours from Amsterdam. Just so I could get this theme and now share it with you.
That’s one prized theme right there, all y’alls. (A Texan taught me that once).
Download it, unzip it, and store it anywhere you like. Don’t like free choice? Then save it in the RadRails/Themes.
If my memory serves me well:
- Go to File > Import…
- Under General, select Preferences, and click Next.
- Browse to the epf file.
- Select the Import All checkbox and press Finish.
You are now one sexy Ruby/Rails developer. Yes, you.
UPDATE: The theme will look for the Consolas font – one of the new Windows Vista fonts that you can download after a bit of Googling – its the replacement for Courier New.
UPDATE: If you cannot install Consolas on your system, you will need to select an alternate fixed width font, such as Courier. To do this:
- Go to Window >> Preferences…
- Go to General >> Appearance >> Colors and Fonts
- Select Basic >> Text Font
- Click Change…
- Select your replacement fixed width font, and press Ok.
Related posts:
- RSpec snippets/templates for RadRails Using RadRails? Using RSpec? Missing some snippet/template love? 70...
- RadRails Templates Cheat Sheets Now that RadRails is blessed with 100s of templates/snippets the...
- RadRails Templates on Trac I have started to cleanup the Ruby and RHTML templates...
- Make RadRails look like TextMate One my very early posts (3 months ago) might...
- Post-Halloween RadRails trick – all TextMate snippets available HTML snippets 48 Ruby snippets 199 I tease myself...
Trackbacks
Use this link to trackback from your own site.





Instructions are spot-on! The blog looks great, and thanks for the mention
Hi Dr. Nic,
*please* help me remove those preferences!
I wanna go back to the original theme.
I tried deleting the radrails folder and reinstalling, but with no luck
THANKS
Thanks for sharing! I flew 22 hrs from Singapore to see your demo!
I’ve changed my font back to monospace (i’m that kind of guy) and everything feels more comfy already
Oh that reminds me – you need to install the new Windows Vista fonts. Specifically its looking for the Consolas font – a monospaced replacement for Courier New.
[...] At some point in the near future I plan on running TextMate on my Mac, but in the meantime Dr. Nic has posted a great TextMate theme for RadRails. I installed it this evening and really love the code coloring on the black background. It’s much easier on my eyes and I’m looking forward to a boost in productivity! [...]
If a Texan taught you Y’alls, it only goes to show that Texas really isn’t a part of the Southern US. Y’all is _always_ plural. Drop the final ’s’ and sin no more.
Thanks for the TextMate theme news/link. I’ll check it out.
Damn… there is official syntax for a phrase “used only in informal situations”
Wikipedia
I’ve uploaded the ClearType fonts for Vista to this article, as you need the Consolas font.
Hi Dr. Nic,
What is the proper way to install the vista fonts? I’m in ubuntu dapper. I just unzipped it in /usr/share/fonts/ttf/ but i’m not sure if its getting picked up.
Thanks
@aaron – I’m a PC chump, so I’ve got the same chance of finding the answer on google you do, but I’ll update the article with how to setup a different fixed-width font if you cannot install the fonts happily.
Hi,
Well it seems to look fine. I can only assume they are getting picked up. I just want to make sure i’m getting all the goodness possible:P
Thanks
Hmm, to check that RadRails is picking up the font, go through the steps to set a new font, and check that Consolas font is in the list. If so, all things should be joyful.
Cheers
Could we get some screenshots perhaps?
@Thomas – good idea – screenshot now added.
Cheers
Nic
Also, for those of you on linux (well, at least one Ubuntu, I suspect it will run on other distros, too), here’s how to load the fonts:
1. Download the font zip to a temporary directory and unzip it.
2. Create a .fonts directory in your home directory if it doesn’t already exist.
3. Move each of the directories into your .fonts directory
4. Run fc-cache from a terminal (you do not need to be root to do this — this only changes the fonts loaded for your current login account)
[...] Damit ich nicht auf Textmate-Feeling verzichten muss, hat sich ein Kollege von Dr. Nic die Mühe gemacht ein Textmate-Theme für Radrails zu erstellen bzw. der Artikel dazu [...]
Love the textmate theme for radrails, black background reminds me of the ol’ VT100 green-on-black or orange-on-black days!
One issue: files with an sql extension are pretty much unreadable. I figured I’d go in and tweak it myself, but I couldn’t find where! The preferences General -> Editors -> File associations says “*.sql” uses “SQL Editor”. I didn’t see where to modify the “SQL Editor” settings, though. Any ideas?
Good contribution. I had written the RadRails guys and mentioned that if they themed the window to look like the RoR Screencasts they would probably see more adoption. Pretty superficial – but that’s life. Personally, I find it easier on my eyes.
[...] There aren’t very many good colour schemes on there yet. Seems like everyone has a black background instead of the standard white background. I made my theme based on the Textmate Theme for RadRails, adapted for the Visual Studio IDE. Consolas is a really great font! [...]
[...] Dr Nic on Ruby on Rails » TextMate theme for RadRails TextMate theme for RadRails (tags: rails eclipse) [...]
Ugh Cleartype is so repulsive, can’t believe someone could look at that all day. I had to use Windows for a bit and Cleartype would give me headaches, not to mention make fonts look rubbish and colours inaccurate.
Give me Monaco 9pt aliased any day.
[...] One my very early posts (3 months ago) might be useful to RadRailers if you haven’t already seen it: how to make RadRails text editors look like TextMate. [...]
Looks great. except for the Tab labels. They are Black (not legible against burgundy) instead of white. Any ideas/suggestions on how to fix this? I could not find a specific setting in the preferences for this.
Thanks.
Yeah…
The only minor problem is those tab labels in black…
@arthur – FireRaven/Martin emailed me later with:
Does this allow you to fix the black tabs?
Sorry for not posting this earlier – forgot it was in email, and not here.
Awesome. The default RadRails color scheme never sat right with me. Just felt ugly.
There was one thing I had to change though. Regular expressions were colored pure blue, which was almost invisible against the black background. Changed it to a lavender and all seems well.
[...] Auch für RadRails gibt es ein Skin, das es wie TextMate aussehen lässt. Außerdem soll RadRails ab der nächsten Version (0.7.2) alle Textmate-Abbrevs beherrschen. Wer nicht warten kann, Dr Nic stellt sie jetzt schon zum Download bereit. [...]
Hi there,
can you help me to uninstall this feature? I didn´t like the result and it changed all my eclipse. Thank you a lot.
Textmate theme for RadRails…
I was recently visiting with my friend Jayme and among other things, he told me about a theme that’s…
Brian Doherty said: “One issue: files with an sql extension are pretty much unreadable. I figured I’d go in and tweak it myself, but I couldn’t find where! The preferences General -> Editors -> File associations says “*.sql” uses “SQL Editor”. I didn’t see where to modify the “SQL Editor” settings, though. Any ideas?”
Yes, this is a problem… Much of the SQL identifiers are in white, and the background colour is white. You can find the (limited) options for SQL Editor in Windows > Preferences… > Data > SQL Editor. But none of the settings show white text on white background. Anyone know how to get SQL to be readable with these preferences?
[...] RubyOnRails : Dr Nic » TextMate theme for RadRails Pour ceux qui travaillent avec les deux éditeurs, voici un petit thème pour customiser RadRails … pour ressembler un peu à TextMate. (tags: eclipse editor programming radrails textmate) [...]
“Bitstream Vera Sans Mono” seems to be a good alternative to consolas, it’s even less similar to that typewriter-eye-killer-style of courier than consolas
(btw I’m not sure that it’s installed on all systems).
…those red/lack tabs are pretty ugly
Is there any way to change that white collapse line between the line numbers and the text-entry field?
It’s driving me nuts.
– t3hslr
[...] Se você é mais um fan desse maravilhoso editor, o TextMate, mas não tem um Apple, já deve ter ouvido falar do template do Dr Nic para RadRails. [...]
[...] At the begging I’ve used RadRails. It was quite nice, but first I had some problems running it on amd64 (you need to pay attention to java version – 32 bit). Now I have ubuntu 32bit, so then some new problems showed up. First of all I needed some other plugins, like for html, css and so on. So I started to use EasyEclipse LAMP which has everything that I need. But finally I thought it’s to big for me. I’ve used snippets from here and theme form here [...]
I agree with t3hslr. Any way to change that color to black? It’s a small thing, but it’s driving me crazy.
Help! =)
Also, agree with Paul. What lunatic at Microsoft (is that redundant?) thought that ClearType looks good? I had to turn it off immediately. They should rename it FuzzyType.
My favorite font for programming is still Andale Mono.
Cheers!
Thanks again Dr. Nic.
I think Lucinda Console looks pretty sweet with this theme.
@Eric Baker & t3hslr
You can go to Preferences -> Ruby -> Editor -> Folding
and remove the checkbox at “Enable folding when opening a new editor”.
This completely removes the white folding column.
[...] Revisando como optimizar mejor el IDE para desarrollo de RoR me encontré con un árticulo que hace referencia a como instalar el tema de TextMate en RadRails. Lo probé y anda bastante bien. [...]
[...] My current editor of choice is RadRails (since it works pretty well in Linux and due to my Java-background in Eclipse), despite the slightly outdated version (last update in December, but I’m hoping, the new maintainers at Aptana will soon do something about that …). I googled a little bit and found that Dr Nic has already released both a TextMate theme and TextMate-like code templates for RadRails. Both seem to work pretty well. To finally make it look even more like TextMate, just download the font Monaco, go to “Window – Preferences – General – Appearance – Colors and Fonts” and set the Text Font to Monaco. [...]
Does anyone know of how to get the folding code line to have a black bg and what widgets to tweak to make the activation widgets look proper with a black bg?
Also, anyone familiar with ways to tweak the rest of the interface so that we can have an all encompassing dark theme throughout Eclipse?
[...] After my switch I found out that it’s either really difficult to do Google searches on Eclipse themes and styles, or that no one has really made much headway in that part of the IDE. (There is the TextMate theme for RadRails but I found it to be not exactly my cup of tea…I’m picky, sorry!). So I tasked myself with an attempt at manually migrating the pretty colors from ZDE into Eclipse, and wouldn’t you know it, the transition went pretty damn smoothly. [...]
Hey Dr. Nic, I was wondering, where I can locate the textmate theme you’re using for RadRails because I would like to add it to textmate?
Thanks in advance,
-Conrad
@conrad – you want to take a radrails theme that’s based on textmate and port it back to textmate?
The link is in the text above or here
Hey Dr. Nic, thanks for getting back to me. I wasn’t able to find the them in Textmate that matched the RadRails Textmate theme. BTW, what’s the name of the Textmate them that RadRails is using? The closest on my system was the following:
All Hallow’s Eve
Sunburst
-Conrad
how to uninstall it,
help me!~
[...] Dr Nic » TextMate theme for RadRails [...]
To go back to the defaults, do File > Switch Workspace and it will go back to normal. Hope this helps! I figured this out by accident.
Forgot to mention that you need to make a new workspace folder.
Anyway why bother with a stupid theme text colors. The important is to code good solutions not to see how beautiful my text editor looks LMAO. Actually that color theme remember me the times of Turbo C on DOS ROFLAO.
Be forewarned that rolling back to your previous default color theme is a bitch.
oh, god this is cool! Thanks a lot!
It looks great for Ruby, but rhtml and sql are pretty much unreadable with this theme.
Looks like with the recent update to radrails plugin, ERB and RHTML no longer work well with this package. I am having trouble figuring out how to change the foreground color in rhtml
aha, to change color of regular html text in RHTML file, you need to change the color of “text” in the HTML editor color settings.
Weird
Anton, Thank you so much for finding this! I’ve almost gone blind because of having black on black rhtml
THANKS!
Anyone know how to fix the unreadable red “tabs”?
How To go back to the defaults, not change workspace…
Please…
Some asked a way to remove the effect. May be the author should ask readers backup the preference first before change it. To backup, Will exporting the preference work?
To fix the tab color:
Preferences/General/Appearance/Colors and Fonts
under
View and Editor Folders
you will find “Active part background begin” and “Active part background end”, set these two to white color.
Thanks for the great look!!!
Stop trying to be something you’re not either go buy a mac and textmate or deal with the radrails theme.
p.s. I love your tagline but really rails makes magic and us rails developers just put the show on the stage.
[...] hab ich gefunden bei Dr Nic und die Templates bei [...]
[...] the Eclipse plug-in for Rails development, and want to get that super cool look textmate offers, you have to check out this post. The color scheme combined with the new fonts that ship with Vista make this a nice switch from the [...]
[...] caso do RadRails, você pode visitar este post que mostra como aplicar o [...]
[...] Dr Nic » TextMate theme for RadRails [...]
This doesn’t work with the New Aptana RadRails 1.0 release.
Go to
http://forums.aptana.com/viewtopic.php?t=2214&highlight=theme+textmate
to find one compatible with that
Really Thanks!!!
This is a really great them. However, it seems to have changed the color scheme for Java development as well. I’m using eclipse 3.4. Any thoughts on how to get my original java code color them back?
It seems that this didn’t change the background of the actual editor, just the background of the text. Any ideas how I can get the editor bg to be black also? I’m on XP not Vista.
please, how to use previous – default theme. thanks