Thanks to visit codestin.com
Credit goes to github.com

Skip to content

code_highlight() trims long strings #726

@moodymudskipper

Description

@moodymudskipper

This is the cli counterpart of prettycode's r-lib/prettycode#20

x <- paste0('"', strrep("-", 1000), '"')
cli::code_highlight(x)
#> [1] "[1000 chars quoted with '\"']"

Created on 2024-09-30 with reprex v2.1.0

Would you like a PR?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions