Incidentally, Panic&#x27;s Coda [1] can do something like this as well in a slightly-more-roundabout way: paste code into it (or just write it), let Coda highlight it, then do Edit &gt; Copy with Styles.<p>I use this to style code I then paste code into presentation slides in order to include pretty code samples on a slide without resorting to screenshots; it has infinite resolution, and someone can copy it from the presentation file or PDF later. I presume this tool would be great for similar uses.<p>1: <a href="https:&#x2F;&#x2F;panic.com&#x2F;coda" rel="nofollow">https:&#x2F;&#x2F;panic.com&#x2F;coda</a>