Skip to main content

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

Release files for mathics-pygments 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mathics-pygments 1.0.4
File Size Uploaded
mathics_pygments-1.0.4.tar.gz 57.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mathics-pygments 1.0.4
File Interpreter ABI Platform
mathics_pygments-1.0.4-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 104.4 kB

Release files / mathics_pygments-1.0.4.tar.gz

Download URL mathics_pygments-1.0.4.tar.gz
Size 57.7 kB
Tags Source
SHA-256 checksum
How to use checksums
694a2fdaf61eb60068f3dc83385a5eedb2ce9c0444b73603e8d20387586c4fc5
BLAKE2b-256 checksum
How to use checksums
6411d0c99863e949090a0f167213e3b0e9d8f487f09c215fb9b36a3b06507ebd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.1

Release files / mathics_pygments-1.0.4-py2.py3-none-any.whl

Download URL mathics_pygments-1.0.4-py2.py3-none-any.whl
Size 46.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
bb6af332d387f1983092ebdb9f26d203f2ddc2944a5f6e8ab84ca3e5bfee3ce8
BLAKE2b-256 checksum
How to use checksums
81572423061094e1cffa72c36fb6de951f50a54f47f4023fc368b44897bd53e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.1

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

6 release files

1.0.1

6 release files

1.0.0

6 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page