Skip to content

Syntax Highlighting for ICU message templates #2675

@ChrisPZone

Description

@ChrisPZone

The Unicode ICU message templates (see https://unicode-org.github.io/icu/userguide/format_parse/messages) are used in browsers and libraries (for example format.js and react-intl, see https://formatjs.io/docs/intl-messageformat)

Syntax hightlighting for placeholders and parameters in these kinds of templates would be great:

Maybe there is already a supported language that would include such single curly bracket placeholders
like {var}
or {price, number, ::currency/EUR}

If not, ICU messages being a standardized templating system, it would be great to include it in supported languages of prism.js and I think it should be based on "markup"

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