Skip to content

Improve formatting of ${...} #1108

@kwalrath

Description

@kwalrath

@mkustermann pointed out that code inside of ${...} is formatted like the rest of the string. It'd be good to format it like real code. E.g. in www.dartlang.org/articles/dart-vm/io#file-system-access, the print statement in the first code snippet looks something like this:

image

That await code (if outside of the string) would look like this:

image

This is probably a prettify issue, but it'd be really nice to fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    co.help-wantedCommunity opportunity to help documentatione2-daysCan complete in < 5 days of normal, not dedicated, workinfra.designRelates to the design of docs.Dart.devinfra.structureRelates to the tools that create dart.devp3-lowValid but not urgent concern. Resolve when possible. Encourage upvote to surface.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions