Textmate’s to HTML

About 1.5 years ago, I switched to a Macbook Pro for my main computer, most of which is a story for another time.  The story this time is TextMate.  TextMate is a editor for ye ol’ OS X.

Actually, this story isn’t about TextMate as a whole, but of one of the many functions hidden within.  TextMate can be thought of a modern Emacs in a sense. Except its Mac only.  And its not free. Anyway…  I just discovered that Textmate will turn a page o’ code into an HTML page for you.  With numbers if you want, and the look based upon your theme. (Ah, how I love you syntax highlighting!)

defun something 
  puts something_else 

So, I can generate pages like that on whim. Why?  I don’t know. But its freaking tight.  Could make for a nice online repository of browsable code.  You could even bust out yer favorite language with the XSLT, and reconvert it to code. Or, offer a download link. Weehaw.

Posted by Andrew     

Comments (0)