Textmate Vibrant Ink Theme and Prototype Bundle

I’ve put together some stuff for Textmate that some of you might find useful. The first is a custom theme called Vibrant Ink and the other is a language bundle with support for Prototype and partial support for Script.aculo.us.
I do a lot of Prototype style Javascript, and this bundle matches the properties-as-functions style of programming that Prototype uses. It also has all of the Prototype and Script.aculo.us Objects built in along with all of the Prototype methods incase you need those as well.
A few code examples:




Download: Download Textmate Vibrant Ink theme and Prototype Bundle
Sorry, comments are closed for this article.
Justin is the Design Director for entp, the company behind Lighthouse, Warehouse, and Mephisto. You can check out his shiny stuff for proof of his super powers.
-

Beautifully simple issue tracking and project management. With a beautiful Mac-like interface, email and subversion integration, Lighthouse is the perfect project management tool. We took the suck out of issue tracking.
-

Web-based Subversion Interface. Manage Subversion permissions and browse through your changesets and files with ease. Warehouse takes the complicated and mundane tasks of Subversion and makes it easy.
-
Jul28permalink
Protip: Color grep searches in terminal
alias grep='GREP_COLOR="1;37;41" LANG=C grep --color=auto'Stash this away in your Z Shell (~/.zshenv) or Bash environment (~/.bashrc) and set your preferred ANSI code.
-
Jun08
ActiveRecord Ported To Objective-C brought to us by Ninja Kitten
permalink -
May06
With the release of Opera’s DragonFly, IE 8’s Developer tools, Safari’s/Webkit’s Web Inspector and Drosera; and the Grand Daddy of them all, Firebug – we’ve now come full circle.
permalink -
Feb08permalink
DoubleClick and Define using Apple Dictionary
var selection; if(window.getSelection) selection = window.getSelection(); else if(document.selection) selection = document.selection.createRange(); document.observe("dblclick", function() { if(navigator.userAgent.include("Macintosh")) { location.href = "dict://" + selection; } });A quick (and probably dirty) Prototype-based hack allowing Mac users to get the definition of any word by double clicking it.
-
Feb08permalink
Object.extend(Date.prototype, { strftime: function(format) { var day = this.getUTCDay(), month = this.getUTCMonth(); var hours = this.getUTCHours(), minutes = this.getUTCMinutes(); function pad(num) { return num.toPaddedString(2); }; return format.gsub(/\%([aAbBcdDHiImMpSwyY])/, function(part) { switch(part[1]) { case 'a': return $w("Sun Mon Tue Wed Thu Fri Sat")[day]; break; case 'A': return $w("Sunday Monday Tuesday Wednesday Thursday Friday Saturday")[day]; break; case 'b': return $w("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec")[month]; break; case 'B': return $w("January February March April May June July August September October November December")[month]; break; case 'c': return this.toString(); break; case 'd': return this.getUTCDate(); break; case 'D': return pad(this.getUTCDate()); break; case 'H': return pad(hours); break; case 'i': return (hours === 12 || hours === 0) ? 12 : (hours + 12) % 12; break; case 'I': return pad((hours === 12 || hours === 0) ? 12 : (hours + 12) % 12); break; case 'm': return pad(month + 1); break; case 'M': return pad(minutes); break; case 'p': return hours > 11 ? 'PM' : 'AM'; break; case 'S': return pad(this.getUTCSeconds()); break; case 'w': return day; break; case 'y': return pad(this.getUTCFullYear() % 100); break; case 'Y': return this.getUTCFullYear().toString(); break; } }.bind(this)); } });UPDATE: Bugs fixed. Thanks Andrew and Stephen
Also, some of my old and new code has been posted on GitHub. You might find something useful.
-
Feb04
A beautiful, organic animation by Flight404 created using Processing.
-
Jan08
Aaron Patterson shows us how to define ruby methods which can be called from JavaScript using RKelly.
permalink -
Jan07
Dustin might not surprise you at your house with a book in hand, but he’ll damn sure send you his innermost fu in the form of a shiny yellow and black book. It’s an excellent read if you’re looking to put more funk in your functions and class in your classes. Check out “Pro JavaScript Design Patterns” by Dustin and Ross Harmes.
—I’m Justin Palmer and I approve this message.
permalink -
Dec23
IE 8 PAsses the Acid 2 Test for those not keeping tabs on things.
permalink -
Oct24
Mislav has written up an excellent overview on upgrading Radiant (which used 1.5) to Prototype 1.6. The article does a great job of showing how 1.6 is superior to 1.5.
permalink -
Oct19
According to the New York Times, the Daily Show Archives, with over 7,000 videos are online—free and searchable.
permalink -
Oct11
-
Oct10
—Erik Kastner shows us how it’s done.
-
Oct09
Defining classes and inheritance in Prototype–Incase you’ve missed it, Prototype 1.6 has a new inheritance model.
permalink -
Aug21
Hurricane Dean’s projected path. The most awesomest hurricane ever.
permalink
Ninja Certified Copyright © 2005-2008 Justin Palmer | Powered by Mephisto

Discussion
Thanks for the theme. It works and looks great.
Looks great, it’ll be nice to use something different from the defaults. Thanks!
Looks sweet! Now all I need is a version of TextMate for my PC :)
Vibrant is nice, although i had to turn off the italicised elements. I code in Monaco 10 with no anti-aliasing and italics just look crummy in that particular situation.
Many thanks!
The link to TextMate is wrong.. ;-)
This is really great. Great job.
Cody: Thanks for letting me know, got it fixed. :-)
Any chance both of them will find their way into TextMate’s bundles repository?
Cheers, Mathias
As a new Textmate (and Mac ;)) User this is very nice, thanks!
sorry, Safari… Can you edit my name above to Beate, please? thanks..
wow great theme! i prefer it over the pastel one. thanks a lot
very very nice.
Nice theme. I have been using the Monochrome 1 for a while but I have been looking for a switch.
I just made an entry on my blog about TextMate too and I just might switch from All Hallows Eve. Also, if you are using TextMate, might I suggest using ProFont.
I’ve tried Profont, but I can’t seem to break away from Monaco. Profont seems to be stubby compared to Monaco.
Wow, what an amazing site. You’re absolutely brilliant, and I love the design! :)
Well, I really snagged the bundle for the prototype/... grammar, as I prefer dark on light.
There is one thing to change though. including source.js will not include the folding marker definition. So you have to copy them from the regular JS definition.
Martin, thanks for pointing that out. I wasn’t aware of it. I’ll try to get an updated version posted soon.
Super slick! Thanks a ton!
Awesomo! Now only if i could get my hands on the Rails snippets which the core team and other uber-hackers use. that would totally rock.
The ink is great. One thing that the defalt TextMate profile had that isn’t present in this is highlighting of embedded eRB in your rhtml files (e.g.
I looked at the Mac Classic color scheme and found the entry (it’s called Embedded Source and has a definition of text source, string.unquoted).
Is there a way to add this to the Vibrant Ink set? I tried the obvious way of adding a new entry and copying/pasting the definition, but it doesn’t seem to do anything.
This theme makes me want to eat Cheetos whenever I use it.
Can I have a variation that works for Lucky Charms?
Love it! Thanks!
Your theme is nice… i’d even say sexy ;)
However, could you, in your spare time make it look sexy for PHP as well ;)
pretttyyy please ;)
—Eric
Just want to pop in and say thanks for the comments! I want to get this updated soon to implement some fixes based on all you guys’ comments.
Wanted to say I love this theme. I would love a version that can handle PHP and other things a little better so that I can always use it.
I like Pragmata as a monospace font. “The ideal font for programmers”.
http://www.fsd.it/fonts/pragma.htm
I wish I understood the fascination with color/white-on-black text. It’s pretty but do you folks really find this readable long-term over white backgrounds? I know it’s a matter of preference but unless I also set the backgrounds of everything else (menu, other background windows, text entry fields etc.) to something dark (not easy to do in OS X), I sort of get glare in my eyes and feel like squinting.
Yes, I would love this theme for PHP as well.
Needs some spam filtering by the looks of it
There’s no Objective-C highlighting ?