Skip to main content

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.

© 2025 rsmenon

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.4.2.tar.gz (55.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygments_mathematica-0.4.2-py3-none-any.whl (49.9 kB view details)

Uploaded Python 3

File details

Details for the file pygments_mathematica-0.4.2.tar.gz.

File metadata

  • Download URL: pygments_mathematica-0.4.2.tar.gz
  • Upload date:
  • Size: 55.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for pygments_mathematica-0.4.2.tar.gz
Algorithm Hash digest
SHA256 e9f2984353c8d4095ce05fa40b59a72a0c9eacf766326dca200ead33a3aedac1
MD5 4341c5d6991057ba799641ed8739a104
BLAKE2b-256 2ab942847dfbce5e8d193fce713e21f9ed7fb2cdc6df56060e990127ef0b5335

See more details on using hashes here.

File details

Details for the file pygments_mathematica-0.4.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pygments_mathematica-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9582da44dad7147067cce2c3f24e5f48b4376862873be7f2226ef9af92bda03f
MD5 d9aab103f437ee18418178b52da7c1bc
BLAKE2b-256 37cef437c0436612e2e024f3c836968545059e342b5861029afad619fd68294d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 files

0.4.1

1 file

0.4.0

1 file

0.3.5

1 file

0.3.4

1 file

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page