This project is a syntax definition for the Prog8 programming language. It enables syntax highlighting in editors like Visual Studio Code, Sublime, IntelliJ IDEA, etc. In addition to general syntax definition, you can find here ready to use extensions for:
- Visual Studio Code
- Sublime 3
The project is still far from being perfect - your contribution is warmly welcomed.
Instructions on installing extensions are in a respective extension's folder.
Syntax definition is made using the Iro tool https://eeyo.io/iro/documentation/ using Rion Object Notation. This format is straightforward to understand, develop, and maintain. The source file is src/Prog8.iro
.
- Open
./src/Prog8.iro
in https://eeyo.io/iro/ - Edit, test, and save
./src/Prog8.iro
file - From the Iro tool, export to Textmate XML file and save as
./src/Prog8.tmLanguage.xml
- Convert Textmate XML to Textmate JSON and save it as
./visualstudiocode/Prog8/syntaxes/Prog8.tmLanguage.json
(you can useTextMate Languages
Visual Studio Code extension to convert) - Could you manualy replace
"name": "prog8",
with"name": "Prog8",
in theProg8.tmLanguage.json
please? :)
- Copy
./src/Prog8.tmLanguage.xml
to./sublime3/Prog8/support/Prog8.tmLanguage
(without .xml file name extension!)