ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Sublime​Smart​BASIC

by eriklins ALL

SmartBASIC language syntax file for Sublime Text editor.

Details

Installs

  • Total 290
  • Win 201
  • Mac 50
  • Linux 39
Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13
Windows 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0

Readme

Source
raw.​githubusercontent.​com

SmartBASIC Syntax Highlighting for Sublime Text

A Sublime Text syntax definition for Laird Connectivity's SmartBASIC language.

SmartBASIC

Laird Connectivity’s smartBASIC is an event-driven programming language that was designed to make BLE technology development quicker and simpler, vastly cutting down time to market. A simple smartBASIC application encapsulates the complete end-to-end process of reading, writing, and processing sensor data as well as advertising, connecting, security, power management, and wireless status. See https://www.lairdconnect.com/wireless-modules/bluetooth-modules for more information.

Syntax Highlighting

Laird provides syntax highlighting files for Notepad++ (Windows) and Textpad (Mac OSX) along with their regular module firmware version releases. This Sublime Text syntax file is based on the latest Notepad++ syntax files for BL652, BL653 and BL654 (as of today… ping me in case there is a new firmware version, I might have missed). Other than the original syntax files from Laird, which cover only the language scope of each module's SmartBASIC implementation, this Sublime Text syntax file is a superset of these scopes.

The drawback of this implementation is, that when working on e.g. a BL652 module, Sublime Text would also highlight SmartBASIC functions, which are only available on the higher-end BL653 or BL654 modules. The advantage is, that you only need one syntax file and no need to switch syntax files when working with different modules in parallel.

File Recognition

SmartBASIC files are usually given names with suffix .sb or .sblib. This Sublime Text syntax definition recognizes both.

Manual Installation

Place the smartbasic.sublime-syntax file inside the Sublime Text packages User folder (Preferences | Browse Packages…) and restart Sublime Text.

Install with Package Control

Install Package Control and run “Package Control: Install Package” command, find and install SublimeSmartBASIC package, restart Sublime Text if necessary.

License

This package is licensed under the MIT License.