A plugin for adding TSX support to Pygments based off the work of the JSX plugin.
Project description
What is this?
This package includes lexers for JSX and TSX files for Pygment. Pull requests are requested, and the code is released under the MIT License. We make no warranties this thing works, just doing our best.
To use
Either:
pip install pygments-tsx
or add us to your requirements wherever they may be these days. (Looking at you, SetupTools, Poetry, PyPi... get it together.)
Acknowledgments
This includes Flavio Curella's awesome package JSX Lexer, and includes the ideas and some code from Igor Hatarist's stab at this same problem pygments-tsx. Flaws were introduced by StartupOS, good stuff came from them.
There's also a hack in here for forcing pygments to accept classes programatically. That was based on discussions in this thread, and specifically suggestions from Vincent Bernat and Jean Abou-Samra
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
File details
Details for the file pygments_tsx-1.0.2.tar.gz
.
File metadata
- Download URL: pygments_tsx-1.0.2.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0ef1cee35f7793d03d60b81f7f2d1702a3030c2fc4ab9d2a93cb79bf2cb5bd4 |
|
MD5 | 8dfc10254dfa216411163ac98281edc4 |
|
BLAKE2b-256 | 54d790857b06d290457b55f7f1835ada78a80fac99daeae3f35d54dcbbc27891 |
Provenance
File details
Details for the file pygments_tsx-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: pygments_tsx-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9209913abf90919a245f4ff3de1d5616dc0efb95c97acb19f059a1f63e321414 |
|
MD5 | ecca5a3733dd19df12f985167a1812f1 |
|
BLAKE2b-256 | 40b1ef8de3f6680221c817dffcffec39c111b85708b2904ea4c7a78f15f7b3c2 |