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.2.tar.gz (5.6 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.2-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vre_language_pygments-0.0.2.tar.gz
  • Upload date:
  • Size: 5.6 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.2.tar.gz
Algorithm Hash digest
SHA256 11f365a3eb93d345a89aed6d2eba710eb2f6fc84c84202e0405a6327ee312c97
MD5 51b6dd017b7bf7277e423b1d85e78319
BLAKE2b-256 0f8759a94af3f52812f32b390a87694b05bbe5339e05d23dab9af959c552290b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vre_language_pygments-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3c6cb35b153d69e5e6d4254768fb3191442fce59da68a0f343e0d3878a767f3b
MD5 1ec5c4c309a2eccb0008481e43e546d5
BLAKE2b-256 e50da6a34b95400c196807ed6bcdc036a46b7b57ae3f7415660392d5f146165a

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