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
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for pygments_michelson-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a9f37a3a988b693776116bfe7067131715c8523f2c6c232fe678ae861cfabca |
|
MD5 | 60218e7ac9c8759217d4f93e0a726152 |
|
BLAKE2b-256 | 2d0cc49ebc0b8e6b33f242a976b551017b1af80fc856d97a85e61627d4610048 |