Pygments Mathematica Versions Save

Mathematica/Wolfram Language lexer and highlighter for Pygments

0.3.4

5 years ago
  • Updated system symbols (@DbxDev)

v0.3.3

7 years ago
  • Fixed backslashes in strings.
  • Fixed missing > and < operators.

v0.3.2

8 years ago
  • Fixed bug in lexing the backtick in `<<Package``.
  • Added usage information for Pelican (@halirutan)

v0.3.1

8 years ago

Removed - from style name to fix LaTeX compilation errors.

v0.3.0

8 years ago
  • Syntax highlighting for local variables in Block, With and Module
  • New style with the default palette from the Mathematica notebook.

v0.3.0-rc-1

8 years ago

Local variables in Block, With and Module are also highlighted now.

v0.2.0

8 years ago
  • Unicode operators like and are now correctly highlighted.
  • Unicode π is recognized as a builtin and other characters like α are recognized as symbols.

Minor updates/fixes:

  • Styles for slots and patterns can now be modified independently.
  • Added example for highlighting Mathematica code in LaTeX documents.

v0.1.0

8 years ago
  • Lexer and highlighter features:
    • All builtin functions in the System`` context except those that use characters from the private unicode space (e.g. [FormalA]`)
    • User defined symbols, including those in a context.
    • 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).
  • New mathematica style for pygments with sane default colors.
  • Companion mma.scss Sass file to generate CSS for HTML documents.