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

  • 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 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.0-rc1.tar.gz (48.4 kB view hashes)

Uploaded Source

Built Distributions

mathics_pygments-1.0.0-rc1-py3.9.egg (93.8 kB view hashes)

Uploaded Source

mathics_pygments-1.0.0-rc1-py3.8.egg (102.2 kB view hashes)

Uploaded Source

mathics_pygments-1.0.0-rc1-py3.7.egg (102.1 kB view hashes)

Uploaded Source

mathics_pygments-1.0.0-rc1-py3.6.egg (102.2 kB view hashes)

Uploaded Source

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