Skip to main content

Mathematica/Wolfram Language Lexer for Pygments

Project description

This is a lexer and highlighter for Mathematica/Wolfram Language source code using the pygments engine.

It currently supports:

  • All builtin functions in the System context including unicode symbols except those that use characters from the private unicode space (e.g. \[FormalA]).

  • User defined symbols, including those in a context.

  • All operators including unicode operators like u03C0.

  • Comments, including multi line and nested.

  • Strings, including multi line and escaped quotes.

  • Patterns, slots (including named slots #name introduced in version 10) and slot sequences.

  • Message names (e.g. the ivar in General::ivar)

  • Numbers including base notation (e.g. 8 ^^ 23 == 19) and scientific notation (e.g. 1 *^ 3 == 1000).

  • Local variables in Block, With and Module.

A Sass file containing the styles can be obtained from the package repository for use in static website generators such as Jekyll, Octopress, Pelican, etc.

Copyright 2021, 2024 Rocky Bernstein (C) 2016 rsmenon

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

mathics_pygments-1.0.3.tar.gz (56.4 kB view details)

Uploaded Source

Built Distribution

mathics_pygments-1.0.3-py3-none-any.whl (46.6 kB view details)

Uploaded Python 3

File details

Details for the file mathics_pygments-1.0.3.tar.gz.

File metadata

  • Download URL: mathics_pygments-1.0.3.tar.gz
  • Upload date:
  • Size: 56.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for mathics_pygments-1.0.3.tar.gz
Algorithm Hash digest
SHA256 a2dbbfb9769ab1a93e622511d400ee7b773b50b01426bd9845fcddb42a62a4e0
MD5 7fd29e53238bd1b7f5b0c29cf3a47734
BLAKE2b-256 005368736fc76427cd7fc3fb6985c3bfb0a2c55d71f9d8817291ce3b851d6863

See more details on using hashes here.

File details

Details for the file mathics_pygments-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for mathics_pygments-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c4ce92d8d21f1a5fc63957a4ddf3dca16a8b861f306fefabd8fa657284e1277f
MD5 8bc4d5213517729dc416934a76596e2d
BLAKE2b-256 fd5d05888f1ae04c95e2b2b4d88d7452bd83b17410fc64dbce6195d00e22a58e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page