To get syntax highlighting in Notepad++, follow these steps to import the BlokScript User Defined Language.
Download the BlokScript.xml language definition file for Notepad++.
Notepad++ Main Menu: Language
> User Defined Language
> Define your language...
Import Button (Top Left)
Select BlokScript.xml
.
You can run scripts directly from Notepad++ using NppExec. Here are some script samples.
Execute selected text:
cd C:\Projects\TestScripts
blokscript -s "$(SELECTED_TEXT)"
Execute current file:
cd C:\Projects\TestScripts
blokscript -f "$(FULL_CURRENT_PATH)"
Eventually we'll have support for more text editors and IDEs. The best way to support syntax highlighting and completion is to incorporate the grammar, which can be found in the BlokScript source code on GitHub:
The grammar is an ANTLR4 grammar.