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

Uploaded Source

Built Distribution

mathics_pygments-1.0.4-py2.py3-none-any.whl (46.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: mathics_pygments-1.0.4.tar.gz
  • Upload date:
  • Size: 57.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for mathics_pygments-1.0.4.tar.gz
Algorithm Hash digest
SHA256 694a2fdaf61eb60068f3dc83385a5eedb2ce9c0444b73603e8d20387586c4fc5
MD5 9514144260bf388421fb1681ba5a0b46
BLAKE2b-256 6411d0c99863e949090a0f167213e3b0e9d8f487f09c215fb9b36a3b06507ebd

See more details on using hashes here.

File details

Details for the file mathics_pygments-1.0.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for mathics_pygments-1.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bb6af332d387f1983092ebdb9f26d203f2ddc2944a5f6e8ab84ca3e5bfee3ce8
MD5 6c8af112213c5dd2c86a391f43b24c52
BLAKE2b-256 81572423061094e1cffa72c36fb6de951f50a54f47f4023fc368b44897bd53e1

See more details on using hashes here.

Supported by

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