Skip to content

How to: highlight R syntax on webpages ?

6 messages · Tal Galili, Benilton Carvalho, Romain Francois +3 more

#
take a look at geshi. b
On Nov 20, 2009, at 4:26 PM, Tal Galili wrote:

            
#
Hi,

I am about to release the "highlight" package which just does that.

You would basically do :

 > highlight( some_file, output = some_other_file_or_connection,
+	renderer = renderer_html() )


If you are in a rush you can grab it from r-forge:
http://r-forge.r-project.org/projects/highlight/

Romain
On 11/20/2009 07:26 PM, Tal Galili wrote:

  
    
#
Hello, 

I wrote a Wordpress blog entry about not only highlighting R syntax, but embedding R commands within an entry and using Sweave to produce the R output, all within Emacs.  The output of the process is ready to paste Wordpress HTML, and a few other R blogs have started using it to generate their content.  Disclaimer, the following is a link to my blog, but it describes a process you might be interested in:

http://blogisticreflections.wordpress.com/2009/09/20/welcome-to-blogistic-reflections/

Best,
Erik
#
Hi Erik,

Interesting blog.  I was pleased to see the reference to org-babel, a  
language-agnostic alternative to Sweave.  Org-babel is a software  
masterpiece that anyone using emacs, LaTeX and R should know about,  
especially if they also use python, ruby, clojure, etc.

All the best,
Tom
On Nov 20, 2009, at 10:02 AM, Erik Iverson wrote: