BigML's DSL for Machine Learning WhizzML syntax highlighting, autocompletions, and settings for Sublime Text.
Install it through Package Control: Install Package > WhizzML. Open Command Palette panel from Tools > Command Palette (cmd+shift+P).
Copy WhizzML.sublime-syntax
, WhizzML.sublime-completions
, and
WhizzML.sublime-settings
or clone this repository inside the User directory
in Sublime Text's Packages directory.
- Syntax highlighting
- Autocomplete
- Syntax settings (auto-indent, tab size, etc.)
- Future Snippets
- Future Code linter
Copy WhizzML.sublime-syntax
, WhizzML.sublime-completions
, and
WhizzML.sublime-settings
into
<path-to-sublime-installation>/Packages/User
(~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User
in Mac).
Modify the desired definitions. When you're done make sure that tests on syntax
highlighting pass using the test file syntax_test.whizzml
. Open it and using
Command Palette panel run the command "Build With: Syntax Tests - All
Syntaxes".
- Sublime Text syntax higlighting:
- Sublime Text autocompletion:
- Sublime Text packages:
A way to get the list of WhizzML reserved names used to build the syntax and completions rules is to run the following commands in the DevTools JS console of the Web WhizzML REPL.
privatePrefixRegex = /^bigml/;
whizzml.user.reserved_names().filter(function(p) {
return !privatePrefixRegex.test(p);
}).join('\n')
0.35.0 (08-29-2019)