Menu

Home

Alex McLain

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

  1. Install Sublime Package Control
  2. Open the Command Palette (Ctrl + Shift + P)
  3. Select Package Control: Install Package
  4. 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

Licensing

This utility is licensed under the MIT License.

Contact

http://www.alexmclain.com/contact

All Projects


Related

Documentation: enable-crestron-classic-color-scheme
Documentation: enable-crestron-dark-color-scheme