On Feb 5, 2005, at 20:05, Allan Odgaard wrote:
On Feb 5, 2005, at 0:43, Chris Ruzin wrote:
[...] Vim will then split the window with the original in the upper half and the colorized HTML version in the bottom half. He then copies what he needs out of that and pastes it into his blog entry. He says it will work with any language Vim understands.
What I'm wanting to know is if there's a way to do something like this in TextMate? Perhaps a command?
If you have a command/script that can convert Ruby code to HTML, then it's not a problem to have this run on your selected text and show the result as text, html, or copy to the clipboard.
Just for the record, there are some utilities out there that can help:
GNU Source-highlight http://www.gnu.org/software/src-highlite/
Beautifier http://www.beautifier.org/
Perltidy http://perltidy.sourceforge.net/
-- fxn