ansi_html_style | R Documentation |
ansi_html()
CSS styles for the output of ansi_html()
ansi_html_style(
colors = TRUE,
palette = c("vscode", "dichro", "vga", "winxp", "win10", "macos", "putty", "mirc",
"xterm", "ubuntu", "eclipse", "iterm", "iterm-pastel", "iterm-smoooooth",
"iterm-snazzy", "iterm-solarized", "iterm-tango")
)
colors |
Whether or not to include colors. |
palette |
Character scalar, palette to use for the first eight colors plus their bright variants. Terminals define these colors differently, and cli includes a couple of examples. Sources of palettes:
|
Named list of CSS declaration blocks, where the names are
CSS selectors. It has a format()
and print()
methods, which you
can use to write the output to a CSS or HTML file.
Other ANSI to HTML conversion:
ansi_html()
ansi_html_style(colors = FALSE)
ansi_html_style(colors = 8, palette = "iterm-snazzy")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.