WolframLanguage
Official Sublime Text package for Wolfram Language
Details
Installs
- Total 2K
- Win 772
- Mac 649
- Linux 399
| Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | Feb 13 | Feb 12 | Feb 11 | Feb 10 | Feb 9 | Feb 8 | Feb 7 | Feb 6 | Feb 5 | Feb 4 | Feb 3 | Feb 2 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
| Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 3 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
| Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Wolfram System Integration with Sublime Text
Official Sublime Text package for Wolfram Language
Forked from https://github.com/ViktorQvarfordt/Sublime-WolframLanguage
Thanks Viktor!
Features
- Syntax Highlighting
- Goto Definition
- Auto complete
- Diagnostics and suggestions for fixes
- Formatting files and selections
- Expand and shrink selection
- Color swatches
- Symbol references
- Documentation on hover
- New menu items (Open in System Editor)
Syntax Highlighting
Support for the entire Wolfram Language syntax and all built-in functions.

Setup
Compatible with Sublime Text 3 and Sublime Text 4.
If the LSP package (https://github.com/sublimelsp/LSP) is installed, then additional features will be available.
LSP functionality uses a Wolfram kernel to run as a language server.
This requires Wolfram System 12.1 or higher.
- Install Package Control
- Open Tools > Command Palette…
- Select Package Control: Install Package
- Install LSP
- Install WolframLanguage
The package must be installed from Wolfram Research.
The WolframLanguage package depends on LSPServer paclet to provide LSP functionality.
Install LSPServer paclet and its dependencies by running this Wolfram Language code:
PacletInstall["CodeParser"]
PacletInstall["CodeInspector"]
PacletInstall["CodeFormatter"]
PacletInstall["LSPServer"]
If properly setup, you should have syntax highlighting and linting of Wolfram Language .wl files.
Test this by typing this into a new .wl file and saving it:
Which[a, b, a, b]
You should see warnings about duplicate clauses.
Settings
If you have Wolfram System installed in the default location on your system, you may not have to change any settings.
If Wolfram System is not in the default location, then specify the actual location:
Go to the menu item:
Package Settings > Wolfram Language > Settings
Add a kernel setting:
{
…
"kernel": "/Applications/Mathematica.app/Contents/MacOS/WolframKernel"
…
}
You may also change the command that is used to start the server:
{
…
"lsp_server_command":
[
"`kernel`",
"-noinit",
"-noprompt",
"-nopaclet",
"-noicon",
"-nostartuppaclets",
"-run",
"Needs[\"LSPServer`\"];LSPServer`StartServer[]"
]
…
}
You may disable Wolfram language server by specifying:
{
…
"lsp_server_enabled": false
…
}
Other Settings
You may use a special Light color scheme that emulates the syntax coloring of the notebook editor:
{
…
"color_scheme": "WolframLanguage.sublime-color-scheme"
…
}
Experimental Settings
You can enable experimental settings. These are not supported.
implicitTokens controls the display of implicit tokens.
{
…
"implicitTokens": ["*", ",", ";;", "?"]
…
}
"*": display implicit Times character×",": displayNullaround stray commas;;: display1andAllaround;;;: displayNullafter;?: display□in place of missing arguments
Troubleshooting
Troubleshooting LSP for Sublime Text
Make sure that LSPServer paclet and its dependencies are up-to-date and can be found on your system:
PacletInstall["CodeParser"]
PacletInstall["CodeInspector"]
PacletInstall["CodeFormatter"]
PacletInstall["LSPServer"]
Needs["LSPServer`"]
If the kernel cannot start, then follow the instructions in the dialog that pops up after 10 seconds for more information.
Server settings
Check WolframLanguage.sublime-settings for errors.
Turn on debug logging from the kernel by giving a string argument to StartServer[].
This is a directory that kernel logs will be written to.
Needs["LSPServer`"];LSPServer`StartServer["/path/to/log/directory/"]