Skip to main content

A Pygments highlighter for the MiniMessage language

Project description

pygments-minimessage

A pygments language highlighter for the MiniMessage language.

This implementation is fairly basic at the moment, it is what has been used for adventure's own docs, and captures most of the language's syntax. There will be some differences in behaviour, since the actual MM parser has a fixed list of known tags - this highlighter treats anything that looks like a tag as a tag.

Usage

pygments-minimessage is available on PyPI. The lexer is exposed with a plugin entrypoint, so it will automatically be picked up by pygments.

To install, use pip or your tool of choice:

$ pip install pygments-minimessage

See examples for some usage scenarios.

<blue>Hello <shadow:red:0.8>MiniMessage</shadow>! <rainbow>Enjoy your stay!

For any other questions, we're happy to help out in the Kyori discord

Contributing

We welcome contributions that help move this lexer closer to parity with the full MiniMessage parser.

License

pygments-minimessage is released under the terms of the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygments_minimessage-1.0.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygments_minimessage-1.0.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file pygments_minimessage-1.0.0.tar.gz.

File metadata

  • Download URL: pygments_minimessage-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pygments_minimessage-1.0.0.tar.gz
Algorithm Hash digest
SHA256 116963a89cacac1537b1d3c21feda39162827336ae40fc82033654edcdf23f6b
MD5 344cd64fd5d626d02fd0cdfa25738889
BLAKE2b-256 8b96c509ddaa1486ccee2b10305792603315a8095f778eaceb25d9fef02fe484

See more details on using hashes here.

Provenance

The following attestation bundles were made for pygments_minimessage-1.0.0.tar.gz:

Publisher: publish.yaml on KyoriPowered/pygments-minimessage

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pygments_minimessage-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pygments_minimessage-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b0e010306eef5244c8ea9516f7688b9b99885d4e1cbfa4c4f9a0f2be690f2d54
MD5 a354aedc3374be62a7e43c2ae5c37950
BLAKE2b-256 c8c3a0348c8bd92350b8c6a1b567f53e380e84fad4ba03e866a61e1bfba9849f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pygments_minimessage-1.0.0-py3-none-any.whl:

Publisher: publish.yaml on KyoriPowered/pygments-minimessage

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page