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
Raw data
{
"_id": null,
"home_page": "http://github.com/Mathics3/mathics-pygments/",
"name": "mathics-pygments",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "syntax highlighting mathematica",
"author": "Rocky Bernstein",
"author_email": "rb@dustyfeet.com",
"download_url": "https://files.pythonhosted.org/packages/64/11/d0c99863e949090a0f167213e3b0e9d8f487f09c215fb9b36a3b06507ebd/mathics_pygments-1.0.4.tar.gz",
"platform": "any",
"description": "This is a lexer and highlighter for Mathematica/Wolfram Language source code \\\nusing the pygments engine.\n\nIt currently supports:\n\n - All builtin functions in the ``System`` context including unicode symbols except those that use characters from the private unicode space (e.g. ``\\[FormalA]``).\n - User defined symbols, including those in a context.\n - All operators including unicode operators like \\u03C0.\n - Comments, including multi line and nested.\n - Strings, including multi line and escaped quotes.\n - Patterns, slots (including named slots ``#name`` introduced in version 10) and slot sequences.\n - Message names (e.g. the ivar in ``General::ivar``)\n - Numbers including base notation (e.g. ``8 ^^ 23 == 19``) and scientific notation (e.g. ``1 *^ 3 == 1000``).\n - Local variables in ``Block``, ``With`` and ``Module``.\n\nA Sass file containing the styles can be obtained from the package repository for use in static \\\nwebsite generators such as Jekyll, Octopress, Pelican, etc.\n\nCopyright 2021, 2024 Rocky Bernstein\n(C) 2016 rsmenon\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Mathematica/Wolfram Language Lexer for Pygments",
"version": "1.0.4",
"project_urls": {
"Homepage": "http://github.com/Mathics3/mathics-pygments/"
},
"split_keywords": [
"syntax",
"highlighting",
"mathematica"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "81572423061094e1cffa72c36fb6de951f50a54f47f4023fc368b44897bd53e1",
"md5": "6c8af112213c5dd2c86a391f43b24c52",
"sha256": "bb6af332d387f1983092ebdb9f26d203f2ddc2944a5f6e8ab84ca3e5bfee3ce8"
},
"downloads": -1,
"filename": "mathics_pygments-1.0.4-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "6c8af112213c5dd2c86a391f43b24c52",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 46699,
"upload_time": "2025-01-28T22:26:19",
"upload_time_iso_8601": "2025-01-28T22:26:19.144099Z",
"url": "https://files.pythonhosted.org/packages/81/57/2423061094e1cffa72c36fb6de951f50a54f47f4023fc368b44897bd53e1/mathics_pygments-1.0.4-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6411d0c99863e949090a0f167213e3b0e9d8f487f09c215fb9b36a3b06507ebd",
"md5": "9514144260bf388421fb1681ba5a0b46",
"sha256": "694a2fdaf61eb60068f3dc83385a5eedb2ce9c0444b73603e8d20387586c4fc5"
},
"downloads": -1,
"filename": "mathics_pygments-1.0.4.tar.gz",
"has_sig": false,
"md5_digest": "9514144260bf388421fb1681ba5a0b46",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 57747,
"upload_time": "2025-01-28T22:26:21",
"upload_time_iso_8601": "2025-01-28T22:26:21.021736Z",
"url": "https://files.pythonhosted.org/packages/64/11/d0c99863e949090a0f167213e3b0e9d8f487f09c215fb9b36a3b06507ebd/mathics_pygments-1.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-28 22:26:21",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Mathics3",
"github_project": "mathics-pygments",
"travis_ci": true,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "Pygments",
"specs": [
[
">=",
"2.1"
]
]
},
{
"name": "wheel",
"specs": [
[
"==",
"0.38.1"
]
]
},
{
"name": "Mathics_Scanner",
"specs": []
}
],
"lcname": "mathics-pygments"
}