Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax Highlighting for ICU message templates #2675

Closed
CrazyChris75 opened this issue Dec 16, 2020 · 2 comments
Closed

Syntax Highlighting for ICU message templates #2675

CrazyChris75 opened this issue Dec 16, 2020 · 2 comments

Comments

@CrazyChris75
Copy link

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"

@bertho-zero
Copy link

#2745

@RunDevelopment
Copy link
Member

I think, I forgot to close this after #2745. Please comment if this need to be reopened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants