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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9763320ec2daac1244785671c9890d01b072e61cb012d713c71f51770019612b
|
|
| MD5 |
482216f33c6eb90b2de4f748a3c5bf3d
|
|
| BLAKE2b-256 |
c2a3e79187f277ff8453964a194637ebfa0f03ff6c4b989bbaece37c845344a1
|
File details
Details for the file vre_language_pygments-0.0.3-py3-none-any.whl.
File metadata
- Download URL: vre_language_pygments-0.0.3-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e95aa17cf9337892d53f6741854b857326d2396a6da5662c7784683544f8d399
|
|
| MD5 |
71bb18346d801ef3699fba5934976093
|
|
| BLAKE2b-256 |
abdb94d98e73a65ddd73ffcd073fb94c80b29e5068405c4153c16a0690e398c5
|