highlight

0th

Percentile

Syntax highlight R code

Syntax highlight R code

Usage
highlight(code, style = default_style())
Arguments
code

Character vector, each element is one line of code.

style

Style functions, see default_style().

Value

Character vector, the highlighted code.

Aliases
  • highlight
Examples
# NOT RUN {
highlight(deparse(ls))
cat(highlight(deparse(ls)), sep = "\n")
# }
Documentation reproduced from package prettycode, version 1.0.2, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.