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.3.tar.gz (5.8 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.3-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vre_language_pygments-0.0.3.tar.gz
  • Upload date:
  • Size: 5.8 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.3.tar.gz
Algorithm Hash digest
SHA256 9763320ec2daac1244785671c9890d01b072e61cb012d713c71f51770019612b
MD5 482216f33c6eb90b2de4f748a3c5bf3d
BLAKE2b-256 c2a3e79187f277ff8453964a194637ebfa0f03ff6c4b989bbaece37c845344a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vre_language_pygments-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e95aa17cf9337892d53f6741854b857326d2396a6da5662c7784683544f8d399
MD5 71bb18346d801ef3699fba5934976093
BLAKE2b-256 abdb94d98e73a65ddd73ffcd073fb94c80b29e5068405c4153c16a0690e398c5

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