Skip to content

Ruby on Rails, TextMate and UltraEdit

Use a Single Editor Well

The editor should be an extension of your hand; make sure your editor is configurable, extensible, and programmable.

The Pragmatic Programmer

I’m starting a project in Ruby on Rails and I’ve found that most documentation, books, and webcasts use the TextMate editor available only for Macintosh computers.  As a longtime user of IDM’s UltraEdit software I’ve configured this editor to work with highlighting similar to style of the themes for TextMate.  Specifically, the idleFingers theme.  I haven’t created an exact match, but it’s pretty close.  I like this theme since it’s easy to see the different syntax elements, while remaining on the soft/natural side in terms of intensity.

Note that I’ve built this configuration and guide based on my current copy of UltraEdit, v11.20b.  Newer or older versions will behave differently, but hopefully similarly enough that this guide is still useful.

Without further ado:

Instructions for making UltraEdit look similar to TextMate for editing Ruby/Ruby on Rails as seen in the Creating a weblog in 15 minutes with Rails 2 screencast which uses the idleFingers TextMate theme and the Bitstream Vera Sans Mono font.

Theme: Based on idleFingers

Download

You can find instructions for importing this file into UltraEdit from this forum post from a similar project for a different theme.

Color Chart extracted from idleFingers theme:
hex: #ffffff rgb: 255 255 255
hex: #fff980 rgb: 255 249 128
hex: #ffe5bb rgb: 255 229 187
hex: #ffc66d rgb: 255 198 109
hex: #ff0000 rgb: 255 0 0
hex: #d0d0ff rgb: 208 208 255
hex: #cdcdcd rgb: 205 205 205
hex: #cccc33 rgb: 204 204 51
hex: #cc7833 rgb: 204 120 51
hex: #c2c2c2 rgb: 194 194 194
hex: #bc9458 rgb: 188 148 88
hex: #b83426 rgb: 184 52 38
hex: #b7dff8 rgb: 183 223 248
hex: #aaaaaa rgb: 170 170 170
hex: #a5c261 rgb: 165 194 97
hex: #91ff00 rgb: 145 255 0
hex: #787878 rgb: 120 120 120
hex: #6ea533 rgb: 110 165 51
hex: #6c99bb rgb: 108 153 187
hex: #575757 rgb: 87 87 87
hex: #404040 rgb: 64 64 64
hex: #353637 rgb: 53 54 55
hex: #323232 rgb: 50 50 50
hex: #282828 rgb: 40 40 40
hex: #000000 rgb: 0 0 0

Note that this file is for UltrEdit versions prior to v15.  With version 15+ color schemes are stored in the WordFiles.

This file assumes that Ruby is your 15th language in the WordFile (ie, /L15″Ruby” …).  You should change the number in the first line to match your WordFile.

Font, and an alternative:

Afer installing the font in Windows, in Ultra-Edit go to View -> Set Font

Ruby Wordfile:

  • From IDM/UltraEdit website
  • My customized Ruby wordfile with additional indentation keywords and removed highlighting of any word starting with a capital letter.
  1. Instructions for installing a wordfile on UltraEdit v15 or higher
  2. Instructions for installing a wordfile on UltraEdit prior to V15
Sample using the Dina font

Sample using the Dina font

BitStream Sample

Sample with BitStream font

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*