Skip to content

Custom string length measurements in plugins #18947

@wintersteiger

Description

I'm experimenting with formatting source code into HTML (with annotations, colors, hovers), which means I frequently produce significantly more characters than will be displayed on the screen. So, printWidth is essentially meaningless. Is there a way (or are there plans to add something) to tell prettier what the visual size of the produced string will be?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions