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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
116963a89cacac1537b1d3c21feda39162827336ae40fc82033654edcdf23f6b
|
|
| MD5 |
344cd64fd5d626d02fd0cdfa25738889
|
|
| BLAKE2b-256 |
8b96c509ddaa1486ccee2b10305792603315a8095f778eaceb25d9fef02fe484
|
Provenance
The following attestation bundles were made for pygments_minimessage-1.0.0.tar.gz:
Publisher:
publish.yaml on KyoriPowered/pygments-minimessage
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pygments_minimessage-1.0.0.tar.gz -
Subject digest:
116963a89cacac1537b1d3c21feda39162827336ae40fc82033654edcdf23f6b - Sigstore transparency entry: 170908831
- Sigstore integration time:
-
Permalink:
KyoriPowered/pygments-minimessage@ecab20bd4c4c0585e7dc66a872b4bbbb2f0b7edd -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/KyoriPowered
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@ecab20bd4c4c0585e7dc66a872b4bbbb2f0b7edd -
Trigger Event:
release
-
Statement type:
File details
Details for the file pygments_minimessage-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pygments_minimessage-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0e010306eef5244c8ea9516f7688b9b99885d4e1cbfa4c4f9a0f2be690f2d54
|
|
| MD5 |
a354aedc3374be62a7e43c2ae5c37950
|
|
| BLAKE2b-256 |
c8c3a0348c8bd92350b8c6a1b567f53e380e84fad4ba03e866a61e1bfba9849f
|
Provenance
The following attestation bundles were made for pygments_minimessage-1.0.0-py3-none-any.whl:
Publisher:
publish.yaml on KyoriPowered/pygments-minimessage
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pygments_minimessage-1.0.0-py3-none-any.whl -
Subject digest:
b0e010306eef5244c8ea9516f7688b9b99885d4e1cbfa4c4f9a0f2be690f2d54 - Sigstore transparency entry: 170908836
- Sigstore integration time:
-
Permalink:
KyoriPowered/pygments-minimessage@ecab20bd4c4c0585e7dc66a872b4bbbb2f0b7edd -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/KyoriPowered
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@ecab20bd4c4c0585e7dc66a872b4bbbb2f0b7edd -
Trigger Event:
release
-
Statement type: