| col256 | R Documentation |
Apply 256-color formatting
col256(text, col = "79", bg = FALSE, output_type = c("ansi", "html", "plain"))
text |
Character: Text to color |
col |
Character or numeric: Color (ANSI 256-color code, hex for HTML) |
bg |
Logical: If TRUE, apply as background color |
output_type |
Character: Output type ("ansi", "html", "plain") |
Character: Formatted text with 256-color styling
EDG
col256("Hello", col = 160, output_type = "ansi")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.