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, as well as RSX, a language called "Toolscript" developed by retool that was syntactically close enough to add in. Pull requests are requested, and the code is released under the Creative Commons Non-Commercial License (CC BY-NC-ND 4.0).
To use
Either:
pip install techlens-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
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 techlens_pygments_tsx-0.3.0.tar.gz.
File metadata
- Download URL: techlens_pygments_tsx-0.3.0.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73d66efff68ffe47e56f56abfd20589a78a19a8d894cf82929398a510b1790e3
|
|
| MD5 |
f5e01049d91d4f91892e1fd544713a61
|
|
| BLAKE2b-256 |
cf3401b9b50ca836eb4d78bd43c0f20b6b5cc5430f0c4512ddfbc291bc31a073
|
File details
Details for the file techlens_pygments_tsx-0.3.0-py3-none-any.whl.
File metadata
- Download URL: techlens_pygments_tsx-0.3.0-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80c4a18cc1b1e1d731fc5a1c75c46f63477e9cdb900756e850f5c6053ebc42bf
|
|
| MD5 |
167d27cd64d3fecf96412160848a3476
|
|
| BLAKE2b-256 |
9182c55da5e57b7936deece4be08595e50266cd40e9dcb921d4369e90fd37042
|