Skip to main content

Pygments plugin for VRE-Language

Project description

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

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

vre_language_pygments-0.0.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

vre_language_pygments-0.0.1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file vre_language_pygments-0.0.1.tar.gz.

File metadata

  • Download URL: vre_language_pygments-0.0.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for vre_language_pygments-0.0.1.tar.gz
Algorithm Hash digest
SHA256 cc012ff0cf0c47a3f8a31c8d65985b364c8d16dcfbae3c32270b06f2ec68df07
MD5 e611065971fca760dcf074b8a32482e5
BLAKE2b-256 a076f154cb7a6818c308f90912a185eca545b65fd8e66daf7b7ff8e07e7fed25

See more details on using hashes here.

File details

Details for the file vre_language_pygments-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for vre_language_pygments-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a8ca7c24b16f09b19bcdb766a23a4e387e6039c339ab2c52feb6ce248332187f
MD5 81dac10494a89109e5baf08a3d354156
BLAKE2b-256 5bd194c39e5383905b7cdc2b55225dd4b1cabbc0552207257d32085635aee4f1

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