Skip to content

syntax highlighting in print.vertical() #417

@wlandau

Description

@wlandau

It would be nice to see syntax highlighting when I print out styled code in the console and in knitr / R Markdown reports:

styler::style_text("
function(x){
  x * (sqrt(5) + 1) / 2 
}
")
#> 
#> function(x) {
#>   x * (sqrt(5) + 1) / 2
#> }

Motivating use case: ropensci/drake#489. Packages that may help:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions