Sublime Text Plugin Creates Highlighting for smartBASIC

Published on April 19, 2021

Sublime Text Plugin Creates Highlighting for smartBASIC

More Development Convenience – Syntax Highlighting for Sublime Text

Ezurio's (formerly Laird Connectivity) unique smartBASIC language is our unique, easy approach to developing for hosted and hostless wireless applications. smartBASIC abstracts what would be hundreds or thousands of lines of C code into a toolkit of simple commands that can be used for full module control and wireless applications. With full API documentation, many sample applications, and portability between wireless modules, Ezurio's smartBASIC is one of the easiest ways to quickly write wireless applications for our line of smartBASIC-enabled Bluetooth, LoRaWAN, and LTE modules.

As a unique application language, Ezurio created plugins for the popular Notepad++ and Textpad text editors. This makes it easier to see the difference between module-specific commands, core commands, comments, and more.

As we’ve seen an increased popularity in Sublime Text as a preferred text editor, we’ve developed a plugin for Sublime Text that creates the same text highlighting for easier development. Sublime Text, which describes itself as a “sophisticated text editor for code, markup and prose,” is available for Windows, Mac OSX and Linux and includes a wide set of features that its users love for simplicity of navigation in code, a highly capable API, and wide customization.

What is smartBASIC?

Our smartBASIC language is the product of years of work and familiarity developing wireless applications. Inspired by the BASIC programming language, it’s optimized for low-cost embedded systems with limited memory by being highly efficient in terms of memory usage. We developed smartBASIC in order to make Bluetooth Low Energy development quicker and simpler, vastly cutting down time to market.

It’s built with automated, hostless applications in mind. With autorun operation that runs the loaded smartBASIC application automatically when powered on, our wireless modules can run completely hostless and independent of a co-processor, with event-driven architecture that is well suited to low-power, autonomous wireless applications.

Using smartBASIC makes it incredibly easy to quickly start running Bluetooth applications on our modules and development kits. They’re provided with prebuilt sample applications for use cases such as LED and Buzzer tests, temperature sensors, heart rate and blood pressure check, virtual serial port, and more. We even provide an AT command set application that makes it possible to easily develop wireless applications with the ease of the classic and familiar Hayes AT command set.

smartBASIC is available for our BT900, BT800, BL652, BL653 and BL653µ, BL654 and BL654PA Bluetooth low energy modules, as well as our Pinnacle 100 LTE-M and NB-IoT modem with Bluetooth 5 and our Sentrius™ RM1xx LoRaWAN + BLE Module.

Learn more at https://www.lairdconnect.com/smartbasic-for-ble.

How Can I Get Syntax Highlighting for smartBASIC in Sublime Text ?

Our official syntax highlighting plugin for Sublime Text has been submitted and is officially available within Sublime Text’s packagecontrol repository. It’s available online at https://packagecontrol.io/packages/SublimeSmartBASIC.

Get Sublime Text at http://www.sublimetext.com/.

The plugin as associated with smartBASIC files, which are appended with the .sb extension. To enable the smartBASIC first enable package control by clicking Tools > Enable Package Control. Then, when installed, click Preferences > Package Control. Click to choose Package Control: Install Package, and then in the search box type SublimeSmartBASIC.

Now, when you have a smartBASIC file open with a .sb or .sblib extension, Sublime Text will highlight text with color to make it easier to see and work with smartBASIC code.

You can also manually set smartBASIC syntax handling when the package is installed by clicking View > Syntax > SmartBASIC.

smartbasic-syntax-sublime-text.png