Skip to main content

pygments-plugin-texts

This is a plugin for the Pygments package providing a lexer, formatter, filter and style for the VRE-Language family of languages (currently textS and textM).

Run the lexer

Via CLI:

pygmentize -l texts test.vm

The lexer class can be imported directly using

from texts_lexer import TextSLexer

Run the formatter

Via CLI:

pygmentize -f texts-format test.vm

Retrieve the formatter class via the API with

formatter_class = pygments.formatters.find_formatter_class("texts-format")

Run the style

Via CLI:

pygmentize -O style=texts-style

Retrieve the style class via API with

style_class = pygments.styles.get_style_by_name('texts-style')

Run the filter

Via CLI:

pygmentize -F texts-filter

Retrieve the filter class via API with

filter_class = pygments.filters.find_filter_class('texts-filter')

Run the tests

After installing the plugin, the tests can be run by these commands:

pygmentize -l textm test_1.vm
pygmentize -l textm test_2.vm

Metadata

Release files for vre-language-pygments 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vre-language-pygments 0.0.3
File Size Uploaded
vre_language_pygments-0.0.3.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vre-language-pygments 0.0.3
File Interpreter ABI Platform
vre_language_pygments-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 16.8 kB

Release files / vre_language_pygments-0.0.3.tar.gz

Download URL vre_language_pygments-0.0.3.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9763320ec2daac1244785671c9890d01b072e61cb012d713c71f51770019612b
BLAKE2b-256 checksum
How to use checksums
c2a3e79187f277ff8453964a194637ebfa0f03ff6c4b989bbaece37c845344a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / vre_language_pygments-0.0.3-py3-none-any.whl

Download URL vre_language_pygments-0.0.3-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e95aa17cf9337892d53f6741854b857326d2396a6da5662c7784683544f8d399
BLAKE2b-256 checksum
How to use checksums
abdb94d98e73a65ddd73ffcd073fb94c80b29e5068405c4153c16a0690e398c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page