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()))
Metadata
Release files for pygments-michelson 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pygments_michelson-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / pygments_michelson-1.0.1-py3-none-any.whl
| Download URL | pygments_michelson-1.0.1-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90edb52dd0abf1a45eaa7e66a85e94201afd6167b50f2ed3f933c8e008967341
|
|
BLAKE2b-256 checksum How to use checksums |
78f9ad4a50193996a64f51d4985ed2d4bb277b33cf58e7d31d498bfd57432cd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|