Sublime Text Crestron Plugin

sublime-crestron

This plugin adds syntax highlighting, color schemes, and build support for the Crestron Simpl+ programming language to the Sublime Text editor.

Installation

Install Sublime Package Control Open the Command Palette (Ctrl + Shift + P) Select Package Control: Install Package Select Crestron

Crestron Classic Color Scheme

Sublime will use the editor's global color scheme by default. If you would like the files to look the way they do in the Simpl+ Editor, the sublime-crestron package comes with a classic Crestron color scheme.

Path Environment Variable

The SIMPL+ compiler, SPlusCC.exe , must be installed on the system and included in the system path in order to compile files with Sublime Text. SPlusCC.exe is included with the SIMPL+ application, which is distributed by Crestron and can be obtained through the Crestron Master Installer application.

Verifying The Path

To verify that SPlusCC.exe is installed and included in the system path, open the command prompt and type spluscc .

If the system is configured correctly, the program will display a list of command line parameters and their descriptions. At this point you can close the command prompt and try compiling from Sublime Text.

If the system is incorrectly configured, a message will say 'SPlusCC' is not recognized as an internal or external command . In the case of an incorrectly configured system, ensure Crestron SIMPL+ is installed, then follow the instructions below regarding modifying the system path.

Modifying The Path

Once SIMPL+ is installed, the directory containing SPlusCC.exe must be included in the system path. By default, Crestron installs SPlusCC.exe to C:\Program Files (x86)\Crestron\Simpl . Once this directory is added to the path, repeat the "Verifying The Path" section above.

Command Reference

This plugin provides commands that are accessible from the Sublime Text Command Palette (Tools -> Command Palette) (Ctrl + Shift + P).

Build: Build (Ctrl + B) - Compiles the Simpl+ module.

Helpful Sublime Plugins

Abacus - Text alignment.

All Autocomplete - Extends the default autocomplete to find matches in all open files.

HexViewer - Hex viewer/editor.

Text Pastry - Insert number/text sequences.

Vintage - Enable Vim hotkeys.

Licensing

This utility is licensed under the MIT License.

http://www.alexmclain.com/contact

Related Projects

All Projects