Printing code with syntax highlighting?

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

    I do it downloading js and css files from

    https://prismjs.com/

    There are so many 5-7 options to select the theme and language highlighter. Once you select a theme and download the tiny js/css files the next thing you need to do is rename the code file to html, and call the css/js files. Open the html in a browser and print it. Done!

提交回复
热议问题