highlight R syntax in wordpress using wp-codebox

Tal Galili's blog post mentioned that WP-Syntax can highlight R codes. I downloaded the modified version of WP-Syntax in his blog site. The plugin throw an error when activated. I did not try the original version hosted in WordPress.

I found that WP-CodeBox use GeShi for syntax highlighting as WP-Syntax does.I used this plugin when I posted perl codes, but did not found it support R syntax yet.

In Tal's another blog post, I found that the lang tag must use "rsplus" instead of "r".

And yes, WP-CodeBox can hightlight R syntax and it works fine as shown in this post.

zv7qrnb

Related Posts

  1. Y叔你好,请教一下,是不是只需要安装 WP-CodeBox 和WP-Syntax这两个插件就可以了?
    现在的Wp-syntax应该可以直接用了吧?不用再去找修复的那个Geshi了吧?原来的链接里已经没有文件可以下载了。。

    Reply

    ygc Hong Kong Mozilla Firefox Mac OS Reply:

    按我的理解,wp-codebox和wp-syntax都是一个level的东西,所以你装任何一个就可以了。然后geshi,这个是它俩共同依赖的,当然是需要装的,除非插件有把它打包进去。你自己check吧。

    Reply

    acheng99 China Mozilla Firefox Ubuntu Linux Reply:

    搞明白了,要在文本下使用,不能在可视化窗口下使用,我一直没用成功的原因,还以为是插件没用好,多谢Y叔

    Reply

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>