Have you tried Pretty R's syntax ( http://www.inside-r.org/pretty-r/tool )? It can be a nice temporary fix until you get something else.
This code:
y <- 1:10 plot(y)
turns into this:
`<div style="overflow:auto;"><div class="geshifilter"><pre class="r geshifilter-R" style="font-family:monospace;">y <span style=""><-</span> <span style="color: #cc66cc;">1</span><span style="">:</span><span style="color: #cc66cc;">10</span> <a href="http://inside-r.org/r-doc/graphics/plot"><span style="color: #003399; font-weight: bold;">plot</span></a><span style="color: #009900;">(</span>y<span style="color: #009900;">)</span></pre></div></div><p><a href="http://www.inside-r.org/pretty-r" title="Created by Pretty R at inside-R.org">Created by Pretty R at inside-R.org</a></p>`
which when attached to your html is displayed as follows:
y <- 1:10
plot (y)
Created by Pretty R at inside-R.org
Marc in the box
source share