Skip to main content

Solidity lexer for Pygments

Project description

Solidity lexer for Pygments, distributed as a PyPI package.

If you want pretty syntax highlighting in documentation for Solidity files, and you’re using Pygments,this might just be the thing for you.

Currently, Solidity keywords up to version 0.4.21 are included, to the best of my ability. MRs are welcome!

Installation

pip install pygments-lexer-solidity

Usage

Depends on doc-building infrastructure.

Sphinx

Have this in Sphinx’s conf.py:

from sphinx.highlighting import lexers
from pygments_lexer_solidity import SolidityLexer
lexers['solidity'] = SolidityLexer()

Then use .. code-block:: solidity for Solidity code blocks.

License

BSD variant. See LICENSE.txt.

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-lexer-solidity-0.1.0.tar.gz (5.0 kB view details)

Uploaded Source

File details

Details for the file pygments-lexer-solidity-0.1.0.tar.gz.

File metadata

File hashes

Hashes for pygments-lexer-solidity-0.1.0.tar.gz
Algorithm Hash digest
SHA256 89b9e2f7d235c48b2605b93e48660c5d5cffa0b5f62e521465bb0dd1dc6b2a1f
MD5 bd18f82d97bda0d919b35dfd52664da2
BLAKE2b-256 530fa9963c9bc49e567269ffabad13dbb17a9aad311072f68b31b7cccb16505d

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