highlight | R Documentation |
Syntax highlight R code
highlight(code, style = default_style())
code |
Character vector, each element is one line of code. |
style |
Style functions, see |
Character vector, the highlighted code.
highlight(deparse(ls))
cat(highlight(deparse(ls)), sep = "\n")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.