Skip to main content

Pygments lexer for Michelson contracts

Project description

Pygments Lexer for Michelson contracts

A lexer class for Michelson contracts.

Installing

From pip:

# pip --user install pygments-michelson-1.0.0

Usage

On the command line

$ pygmentize contract.tz

From python script to generate HTML

from pygments import highlight
from pygments_michelson import MichelsonLexer
from pygments.formatters import HtmlFormatter

code = 'parameter unit; storage unit; code { CDR; NIL operation; PAIR };'
print(highlight(code, MichelsonLexer(), HtmlFormatter()))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

pygments_michelson-1.0.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file pygments_michelson-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pygments_michelson-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for pygments_michelson-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 90edb52dd0abf1a45eaa7e66a85e94201afd6167b50f2ed3f933c8e008967341
MD5 8f3b9c18e72596dbf87f020d4680c3f5
BLAKE2b-256 78f9ad4a50193996a64f51d4985ed2d4bb277b33cf58e7d31d498bfd57432cd0

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