Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding basic support for mathematica #2921

Merged
merged 16 commits into from Jun 2, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion components.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions components.json
Expand Up @@ -1346,6 +1346,14 @@
"require": "markup",
"owner": "Golmote"
},
"wolfram": {
"title": "Wolfram language",
"alias": "wl",
"aliasTitles": {
"wl": "Mathematica"
RunDevelopment marked this conversation as resolved.
Show resolved Hide resolved
},
"owner": "msollami"
},
"xeora": {
"title": "Xeora",
"require": "markup",
Expand Down
24 changes: 24 additions & 0 deletions components/prism-wolfram.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions components/prism-wolfram.min.js

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions examples/prism-wolfram.html
@@ -0,0 +1,31 @@
<h2>Comments</h2>
<pre><code>
(* This is a comment *)
</code></pre>

<h2>Strings</h2>
<pre><code>
"foo bar baz"
</code></pre>

<h2>Numbers</h2>
<pre><code>
7
3.14
10.
.001
1e100
3.14e-10
2147483647
</code></pre>

<h2>Full example</h2>
<pre><code>
(* Most operators are supported *)
f /@ {1, 2, 3};
f @@ Range[10];
f @@@ y;
Module[{x=1},
Return @ $Failed
]
</code></pre>
1 change: 1 addition & 0 deletions plugins/autoloader/prism-autoloader.js
Expand Up @@ -239,6 +239,7 @@
"url": "uri",
"vb": "visual-basic",
"vba": "visual-basic",
"wl": "wolfram",
"xeoracube": "xeora",
"yml": "yaml"
}/*]*/;
Expand Down
2 changes: 1 addition & 1 deletion plugins/autoloader/prism-autoloader.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions plugins/show-language/prism-show-language.js
Expand Up @@ -230,6 +230,8 @@
"vb": "Visual Basic",
"wasm": "WebAssembly",
"wiki": "Wiki markup",
"wolfram": "Wolfram language",
"wl": "Mathematica",
"xeoracube": "XeoraCube",
"xml-doc": "XML doc (.net)",
"xojo": "Xojo (REALbasic)",
Expand Down