This wordpress site allows highlighting code and rendering equations written in LaTeX.

Example of syntax highlighting in R:

<pre lang=”rsplus”>
a=4 # assigning value of 4 to a
a # print value of a
</pre>

Example of equation using LaTeX code:

$f(x)=\sin(x)+e^x$

Example of syntax highlighting in R:

a=4 # assigning value of 4 to a
a # print value of a