Sublime Text 3 - Promela Spin Syntax Highlighting and Build System
Note: While the syntax highlighting should work on any OS with no dependencies, the build system is Windows only, and requires that jSpin's
bin directory (default:
C:\jspin\bin) be added to the PATH variable.
- Open Sublime Text's Command Palette (default: Ctrl+Shift+P)
Package Control: Install Package
promela spinand select "Promela_Spin" to install the package.
Preferences -> Browse Packages, and then either download and unzip this plugin into that directory, or:
git clone https://github.com/corbanmailloux/sublime-promela-spin.git "sublime-promela-spin"
2. Activate this Language
After installing this package, open an PML file and switch the language to
Promela, using one
of the following methods:
- Select from the list of supported languages in your status bar at the bottom right corner of your editor
- Ctrl+Shift+P and search for "Promela"
3. Make "Promela" the default
Promela the default highlighting for the current extension:
- Open a file with the extension you want to set a default for (i.e.
- Navigate through the following menus in Sublime Text:
View -> Syntax -> Open all with current extension as... -> Promela
3. Test the Build System
The "Promela - Random" build system should be automatically selected when a Promela file is open.
To run the build, press Ctrl+B or select "Build" from the "Tools" menu.
Copyright and License
Copyright 2014 Corban Mailloux