Printing code with syntax highlighting?

后端 未结 13 2440
轻奢々
轻奢々 2021-02-01 16:00

I have occasion to need to print code (Horrors!!! ;) ), and i was wondering what editor or tool would i use to print that code out with proper formatting and syntax highlighting

13条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-01 16:32

    http://pygments.org/ is one option. It supports a ton of languages, and since it's written as a python library, you can script the conversion process however you want.

提交回复
热议问题