A Slider to Control Two Plotting Windows | /en/2010/09/a-slider-to-control-two-plotting-windows/
A Slider to Control Two Plotting Windows
https://yihui.org/en/2010/09/a-slider-to-control-two-plotting-windows/
https://yihui.org/en/2010/09/a-slider-to-control-two-plotting-windows/
访客 *李青龙* @ 2010-10-12 12:21:19 写道:
益辉兄 我想知道如何像你终于粘贴有格式的代码(包括 行数和代码颜色以及 tab换行)
我只知道NppToR的 export to rtf 功能可以保留这种格式粘贴到word里面,但是我的 preference是 背景色为黑色,于是导致我粘贴的代码 是彩色的代码夹着一圈黑色的边,配上word的白色背景。 所以我很好奇各位神人blog里的代码是怎么粘贴上去的
I don't copy and paste code in rich text format -- I use other tools to highlight the code without really touching'' it, which I believe is a good habit in programming (keep the source code clean'').
In my blog, I use SyntaxHighlighter to highlight the code, as explained in http://yihui.name/en/2010/09/syntaxhighlighter-brush-for-the-r-language/ (you can take a look at the source code of this HTML page)
And I don't use Word as usual. I use Sweave (LaTeX & R) in which highlighting is also possible (automatically). I can show you an example in my Chinese later.
Originally posted on 2010-10-12 19:35:18
Sign in to join the discussion
Sign in with GitHub