KEMBAR78
Using NotePad++ and Color Syntax Highlighting (v1.0) | PDF | Basic | Source Code
0% found this document useful (0 votes)
338 views2 pages

Using NotePad++ and Color Syntax Highlighting (v1.0)

This document provides instructions for configuring Notepad++ text editor to use color syntax highlighting when editing smart BASIC source code files for BL600 modules. It explains how to import the smartBASIC(Notepad++).xml file contained in BL600 firmware zip files to set up syntax highlighting in Notepad++. The syntax highlighting scheme colors different code elements like functions and keywords to help read and develop smart BASIC programs. Users can follow the provided steps to set up Notepad++, remove any existing smart BASIC configuration, import the xml file, and then open and edit smart BASIC files with colorized syntax.

Uploaded by

marian433
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
338 views2 pages

Using NotePad++ and Color Syntax Highlighting (v1.0)

This document provides instructions for configuring Notepad++ text editor to use color syntax highlighting when editing smart BASIC source code files for BL600 modules. It explains how to import the smartBASIC(Notepad++).xml file contained in BL600 firmware zip files to set up syntax highlighting in Notepad++. The syntax highlighting scheme colors different code elements like functions and keywords to help read and develop smart BASIC programs. Users can follow the provided steps to set up Notepad++, remove any existing smart BASIC configuration, import the xml file, and then open and edit smart BASIC files with colorized syntax.

Uploaded by

marian433
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

BL600 MODULE

Americas: +1-800-492-2320 Option 2 1 Laird Technologies


Europe: +44-1628-858-940
Hong Kong: +852 2923 0610
www.lairdtech.com/bluetooth
USING NOTEPAD++ AND COLOR SYNTAX HIGHLIGHTING
Application Note v1.0
INTRODUCTION
If you intend to use Notepad++ to edit and develop smart BASIC source code, then the goal of this document
includes the following:
To explain how to configure Notepad++ so that smart BASIC code is displayed with color syntax highlighting.
OVERVIEW
When editing and developing source code for programs most modern text editors can display the code with color
syntax highlighting.
The color scheme is based on the underlying syntax of the language for which the code was written.
smart BASIC has a BASIC flavour and in addition, for each implementation, there are platform specific extension
functions.
Notepad++ can be configured directly from the software by using the built in syntax editor which defines the color
syntax highlighting for a specifically named programming language. As of September 2013, all BL600 firmware
upgrade zip files from Laird contain a file called smartBASIC(Notepad++).xml which can be used to configure
Notepad++ to display smart BASIC source code.
A typical look and feel of smartBASIC source fragment in Notepad++ (when configured correctly) is shown in
Figure 1. For example, UartCloseEx() is an extension function displayed in a different color from the token function
which is part of the core language.

Figure 1: Standard smartBASIC source code with color syntax highlighting

Using Notepad++ and Color Syntax Highlighting BL600
Application Note
Americas: +1-800-492-2320 Option 2 2 Laird Technologies
Europe: +44-1628-858-940
Hong Kong: +852 2923 0610
www.lairdtech.com/bluetooth
REQUIREMENTS
Windows PC (XP or newer) with Notepad++ version 6.4.5 or newer installed. You can install it by
downloading it from http://notepad-plus-plus.org
SMARTBASIC NOTEPAD++ SYNTAX SETUP
To configure Notepad++ for color syntax highlighting for the first time perform the following actions:
1. If necessary, install Notepad++ (version 6.4.5 or newer).
2. From the BL600 firmware upgrade zip file copy the file smartBASIC(Notepad++).xml to the desktop (it will be
deleted in the final step).
3. Start Notepad++.
4. If Notepad++ has already been configured for smart BASIC color syntax highlighting, then smart BASIC must
be removed. To do this, follow these steps:
a. Select Language > Define your language.
b. In the User Language dropdown menu, select smartBASIC.
c. Click Remove.
d. Close the User Defined Language dialog box.
5. Close Notepad++.
6. Start Notepad++.
7. Close all current (non-empty) Notepad++ documents.
8. From the top menu, select Language > Define your language to open the User Defined Language vW.X.Y.Z
window.
9. Click Import.
10. From the new popup screen, find and select the smartBASIC(Notepad ++).xml file in the folder saved in step 2.
11. Click Open.
12. Close the remaining popup screen and then close Notepad++.
13. Reopen Notepad++.
14. From the top menu, select Language > smartBASIC.
You can now delete the smartBASIC (Notepad++).xml file from your desktop
Loading a .sb or a .sblib file from the sample apps folder in the firmware zip file should now result in the source
code being displayed with color syntax highlighting.
SMARTBASIC NOTEPAD++ SYNTAX EDITING
1. Start Notepad++.
2. From the taps on the top select Language > Define your language.
3. From the new window, select User Language > smartBASIC.
You are now able to edit your syntax as needed.
Further Information
Further information relating to firmware and the use of UWTerminal is available from the Laird website at
http://www.lairdtech.com/Products/Embedded-Wireless-Solutions/Bluetooth-Radio-Modules/BL600-Series

You might also like