ansi_html_style {cli} | R Documentation |
CSS styles for the output of ansi_html()
Description
CSS styles for the output of ansi_html()
Usage
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")
)
Arguments
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:
|
Value
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.
See Also
Other ANSI to HTML conversion:
ansi_html()
Examples
ansi_html_style(colors = FALSE)
ansi_html_style(colors = 8, palette = "iterm-snazzy")
[Package cli version 3.6.3 Index]