30 seconds with textmate

writing a presentation, I used to copy/paste code from xcode to get some nice formatting. I need some weird language, so I try to do it with Textmate. But copy/paste won’t keep the color formatting. test: FAILED. (emacs won’t do it either, but that doesn’t surprise me much).

2 Responses to “30 seconds with textmate”

  1. shrug Says:

    1. Bundles → TextMate → Create HTML from document
    2. ⌃⌥⌘P (for WebPreview)
    3. ⌘A and ⌘C

    More than one keystroke, sure. But how often does one need it?

  2. Sebastien Tanguy Says:

    Thanks for the tip. It feels like using htmlize on Emacs.

    I didn’t emphase it, but in the end, this is just one test, nothing more. I would have expected a bit more from a Mac application. A good app would keep text attributes in the clipboard. Of the top of my head, this is the case for Eclipse and XCode when copy/pasting code, or Safari. Really, just a matter of expectations.