Skip to main content

Pygments 1C (BSL, SDBL) lexer

Project description

PyPI - Version

pygments-bsl

Pygments is a syntax highlighting tool.

Who uses Pygments?

Online example MkDocs with pygments-bsl support https://zeegin.github.io/pygments-bsl/

pygments-bsl used in:

Syntax rules adopted from https://github.com/1c-syntax.

Install

$ pip install pygments-bsl

Install local

pip install .

Build

python -m build

Test

pytest

Generate lexer data from JSON (after updating files in 3rd_party/)

python tools/generate_data.py

Usage

pygmentize "C:\git\pygments-bsl\tests\examplefiles\bsl\samples.bsl"
pygmentize "C:\git\pygments-bsl\tests\examplefiles\bsl\samples.os"
pygmentize "C:\git\pygments-bsl\tests\examplefiles\sdbl\samples.sdbl"

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

pygments_bsl-1.0.0.tar.gz (62.8 kB view details)

Uploaded Source

Built Distribution

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

pygments_bsl-1.0.0-py3-none-any.whl (63.4 kB view details)

Uploaded Python 3

File details

Details for the file pygments_bsl-1.0.0.tar.gz.

File metadata

  • Download URL: pygments_bsl-1.0.0.tar.gz
  • Upload date:
  • Size: 62.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for pygments_bsl-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dcf11e5e7f4174ca189d1d35696c5b0a81cbb524d20cad50c2215de19b1f83d2
MD5 a76ac397ed97fc92f5db51d6d2f29fd8
BLAKE2b-256 965d43b5bba02d9d643b36e33edab38b2970625472e17548209955490acb7748

See more details on using hashes here.

File details

Details for the file pygments_bsl-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pygments_bsl-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 63.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for pygments_bsl-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 23a9b016bce8f773cdb5ef6860cd2078c61ff2e163fe02b12df075631fc53a8b
MD5 60c46d063f47c8f24d129f285e186bbd
BLAKE2b-256 711779bf0b38a98b2f7edc63c05d33b96ba1defa5f13a10fb8a091ce63777861

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