Skip to main content

Mathematica/Wolfram Language Lexer for Pygments

Project description

This is the most up-to-date 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 like π 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 and .

  • 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.

© 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

pygments-mathematica-0.3.5.tar.gz (45.8 kB view details)

Uploaded Source

File details

Details for the file pygments-mathematica-0.3.5.tar.gz.

File metadata

  • Download URL: pygments-mathematica-0.3.5.tar.gz
  • Upload date:
  • Size: 45.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.16

File hashes

Hashes for pygments-mathematica-0.3.5.tar.gz
Algorithm Hash digest
SHA256 a16035081fb2aff59456a3f7ec5c9e6508fd69f24e65732007ed68b8dcbecfef
MD5 00f8f8f71d8a7f89f42ba8f1b8ad5c5d
BLAKE2b-256 8113f632d41a44d4643fc99369ba3fb30b8007ac58674e9942cea8882cdbdc04

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