[TxMt] A way to generate HTML of highlighted code?

Allan Odgaard allan at macromates.com
Fri Mar 4 18:04:43 UTC 2005


On Mar 4, 2005, at 18:53, Simon Gregory wrote:

> I'm not sure whether anyone's already done this but your best bet  
> would be to rig a command use the GeSHi syntax hi-lighter which can be  
> found here http://qbnz.com/highlighter/ and supports quite a few  
> languages:

Chris Ruzin did something like this, but for code and not HTML:  
http://www.chrisruzin.net/index.php/entry/ 
exporting_textmate_code_to_html/

> Doing this via the syntax files of the language bundles would be very  
> neat so might be worth investigating.

Yes -- most likely something like this will be possible now that syntax  
files are more or less reduced to tokenizing (in upcoming beta).




More information about the textmate mailing list