Highlite provides an R extension of Andre Simon's C++ library [highlight] (http://www.andre-simon.de/doku/highlight/en/highlight.php). It provides syntax highlighting without the need to compile and install a separate executable and includes support for over 200 languages, 80 themes and 10 output formats, including ANSI Escape Codes, HTML, LaTeX and SVG.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.