LaTeX package for syntax highlighting of code in various languages

后端 未结 7 1943
温柔的废话
温柔的废话 2020-11-29 15:00

I am looking for a LaTeX package that does syntax highlighting on code. For example, right now I use the verbatim block to write code:

\\begin{verbatim}
             


        
7条回答
  •  爱一瞬间的悲伤
    2020-11-29 15:26

    LGrind does this. It's a mature LaTeX package that's been around since adam was a cowboy and has support for many programming languages.

提交回复
热议问题