README.TXT MapBasic 10.5: Syntax Highlighting and Auto Completion in Notepad++ 30/09/2010 13:31 47,319 mapbasic.api 30/09/2010 13:34 101,316 mapbasic.xml 30/09/2010 15:09 44,241 userDefineLang.xml Files created by Egge-Jan Pollé - July 2008 Files updated by Egge-Jan Pollé - September 2010 ==================================================================================================================== WARRANTY The aforementioned files - userDefineLang.xml, mapbasic.xml and mapbasic.api - are provided “as is”, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall Egge-Jan Pollé or any other contributor be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the aforementioned files or the use of those files. ==================================================================================================================== STEP 1: install Notepad++ (the files have been tested with Notepad++ v5.3.1) STEP 2: Syntax Highlighting for MapBasic Copy the file userDefineLang.xml to the folder %USERPROFILE%\Application Data\Notepad++. (i.e. C:\Documents and Settings\my_user_name\Application Data\Notepad++\userDefineLang.xml) Please note: if you already have other user defined languages, you will need to append the content of this userDefineLang.xml to the end of the existing file. Otherwise you can just copy the file to the aforementioned folder. Now the syntax will be highlighted by telling Notepad++ to use Language > MapBasic for your files: - MapBasic Program Source (*.MB) - MapBasic Include Files (*.DEF) - MapInfo Tables (*.TAB) - MapInfo Workspaces (*.WOR). The following colors will be used: - Orange (#FF8000): Keywords and Definitions (the defines from the files ICONS.DEF and PaperSize.def (MapBasic 10.5)) - Blue (#0000FF): Statements - Red (#FF0000): Functions and Procedures - Green (#008000): Definitions (the defines from the files MAPBASIC.DEF and MENU.DEF (MapBasic 10.5)) STEP 3: Auto Completion for MapBasic Step 3a: for Notepad++ v4.9.2 and earlier versions: Copy the file mapbasic.api to the folder \plugins\APIs of the Notepad++ installation folder. (i.e. C:\Program Files\Notepad++\plugins\APIs\mapbasic.api). Step 3b: for Notepad++ v5.0 and later versions: Copy the file mapbasic.xml to the folder \plugins\APIs of the Notepad++ installation folder. (i.e. C:\Program Files\Notepad++\plugins\APIs\mapbasic.xml). You can invoke Auto Completion (using Ctrl+space) for MapBasic if you have indicated that the Language of your file is MapBasic. (This means that the file with the user defined language should be in place - see step 2.) The file mapbasic.api and/or mapbasic.xml contains more than 2500 entries, including: - all the defines from the files ICONS.DEF, MAPBASIC.DEF, MENU.DEF and PaperSize.def (MapBasic 10.5) - Functions, procedures and statements (the full statement, for example 'Create Report From Table') - many, many keywords STEP 4: Happy coding!-)