The Escape Gem, and connecting dots

CodeNice!, the little merb app unagi-san and i have embarked upon is coming along nice! But, unfortunately the state of ruby syntax highlighting libraries is pretty sad.  Besides the fact that you have to get oniguruma running (again a non-trivial task), ultraviolet has some internal FAIL that you have to hack around to get working as a callable lib.

So, we’re gonna use pygments instead.  Only problem then, as we discovered, was that escaping things like haskell for use in system calls is about as pleasant as shaving with a hacksaw.  After a bit of kicking around the interwebs, i discovered a page comparing the Escape class and Facets’s escaping abilities.  Unfortunately, WhyNotWiki doesn’t make any freaking reference to what the Escape class actually belongs to.  Back to the googles :P

After a while, i discovered it’s part of an old skool gem just called “escape”, which doesn’t have a rubyforge page near as i can uncover, and seems to have been updated to 0.0.4, although it’s webpage has it’s most recent version at 0.0.2 :P

Anyway, someone needs to compile some of this info in one place, so here it is.  The nice thing about the escape gems is that it does however do what it says it does!

Edit 12/09/2008:

Having harassed the github guys (who are awesome) i discovered that the wrapper that they use for highlighting their gists is available in defunkt’s github repo (er i guess actually it’s been moved to the github account’s repos).  It’s called albino.

blog comments powered by Disqus