Sweave syntax highlighting in output

前端 未结 4 1302
鱼传尺愫
鱼传尺愫 2021-01-01 04:20

Has anyone managed to get color syntax-highlighting working in the output of Sweave documents? I\'ve been able to customize the output style by adding boxe

4条回答
  •  难免孤独
    2021-01-01 04:45

    Yes, look at some of the vignettes for Rcpp as for example (to pick just one) the Rcpp-FAQ pdf.

    We use the highlight by Romain which itself can farm out to the hightlight binary by Andre Simon. It makes everything a little more involved---Makefiles for the vignettes etc pp---but we get colourful output from R and C/C++ code. Which makes it worth it.

提交回复
热议问题