Skip to main content

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


Download files

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

Source Distribution

techlens_pygments_tsx-0.5.0.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

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

techlens_pygments_tsx-0.5.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file techlens_pygments_tsx-0.5.0.tar.gz.

File metadata

  • Download URL: techlens_pygments_tsx-0.5.0.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for techlens_pygments_tsx-0.5.0.tar.gz
Algorithm Hash digest
SHA256 5bef3fffb7096a528e8ef25ee9eb8679c876c6443914372a296b5375a63a2db2
MD5 ea58a664e3538c080bb2ad741a21aed5
BLAKE2b-256 788df56f78a8ed0c06323a1a17f83f0aa2a1da3a4ad9fac396641cefe35f23a4

See more details on using hashes here.

File details

Details for the file techlens_pygments_tsx-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for techlens_pygments_tsx-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 995a4482c085b49d1081215761b09a1f46e335c53298410e3f912a49b6c38a4c
MD5 524d08469ceadc23474cd561b9495277
BLAKE2b-256 31f2a7728c6b0b8af0ef2d9e652c71d14a233a9082ce09b8cdf347147654fa7b

See more details on using hashes here.

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