Printing code with syntax highlighting?

后端 未结 13 2224
轻奢々
轻奢々 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:28

    The tool called enscript is very much the tool for doing this. It is very powerful, is not tied to an editor nor a language and you can create PDF's with syntax highlighting.

    The documentation pretty much says it all.

    enscript man page

提交回复
热议问题