Printing code with syntax highlighting?

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

    I while ago I created a household python script that wraps pygments into a small console utility. It works with any language supported by pygments.

    Also if you happen to use eclipse, you could simply copy the selected text in the editor and then paste it in a RTF-aware editor like MS Word - it will preserve all the colors, fonts and formatting.

提交回复
热议问题