Depending on your use case you could do what pygments.rb does: long running python processes to which you pipe your code you want to highlight.
Depending on your use case you could do what pygments.rb does: long running python processes to which you pipe your code you want to highlight.