Look in the TextMate bundle for create HTML from Selection (with or without line numbers) and create CSS from current theme (also in the TM bundle)
On 2008/06/13, at 10:30, Tony Crockford wrote:
Before I go mad and spend ages re-inventing the wheel, is there something in/for TM that I have missed that would allow me to take a selected code sample and save it in some way that it could be presented in another html page?
(ideally wrapped with some styling hooks for CSS so syntax could be highlighted.
e.g. converting <div> to <span class="tag_div"><div></span>
TIA
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate