Ultraviolet Syntax Highlighting on OS X

We love TextMate. Ultraviolet is a syntax highlighting engine based on TextMate's language definition files. We want to post code excerpts on this blog from time to time and Ultraviolet seems like a good fit. Out of the box you get highlighting for over 50 languages and access to over 20 themes.

Unfortunately, it's not as easy as "gem install ultraviolet" this time. Ports and gems are great, but when they don't work it takes a little digging to find the solution. I'll record my findings here and hopefully save someone else some time.

Really all that needs to be done is to build the Onigurama library manually. Run on over to http://www.geocities.jp/kosako3/oniguruma/ and download and install the latest release. After that, you should be able to install the Ultraviolet gem without any trouble.

Here it is:

   1  wget http://www.geocities.jp/kosako3/oniguruma/archive/onig-5.9.1.tar.gz
   2  tar -zxf onig-5.9.1.tar.gz
   3  cd onig-5.9.1
   4  ./configure
   5  make
   6  sudo make install
   7  sudo gem install ultraviolet

Most agencies want to build it, bill it, and move on. Not us. We’re in it for the long haul. Nearly every client we’ve ever had is still our client and those applications are still running at full speed.

PROJECTS

FlixCloud - On-demand Video Encoding Red Is White - Christian T-Shirts