colorize | R Documentation |
This function allows you to color text in a Rmarkdown document. It works with both PDF and HTML output. If used outside of a Rmarkdown document, it just outputs the same string.
colorize(x, color = "red")
x |
Text string to colorize. |
color |
Color string, defaults to "red". |
colorize("text_red", color = "red")
colorize("text_white_hex", color = "#FFFFFF")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.