Print code with syntax highlighting
# S3 method for constructive_code
print(
x,
...,
colored = getOption("constructive_pretty", TRUE),
code_theme = NULL,
style = NULL
)The object to print
Unused
Whether to apply syntax highlighting. Set to FALSE, or use
options(constructive_pretty = FALSE) to turn off highlighting.
Syntax highlighting theme passed to cli::code_highlight().
Setting code_theme = list() will remove all syntax highlighting, but
hyperlinks will remain if supported.
Deprecated in favour of code_theme