- Visual Studio Code (VSC) is extendable. For syntax highlighting it generally uses either a Language Server or a TextMate bundle. Official documentation on creating a syntax highlighting extension is available.
- Microsoft’s documentation recommends Writing a Text Grammar: Some Lessons Learned, but I found this more confusing.
- The official TextMate documentation is available, and maybe I’m just daft, but I didn’t find this particularly readable either…though better than above.
- The majority of VSC syntax highlighting extensions appear to be using existing TextMate grammars. If you need to develop your own grammar, check out Ron Soak’s article I Built My Own VS Code Syntax Highlighter…
Other Syntax Highlighting Extensions
- Fuze Basic – Official Site – GitHub Repo – BASIC used for educational purposes, concise and easy to grasp the extension code.
- Sinclair Basic – Wikipedia Article – GitHub Repo – An older BASIC, concise and easy to grasp the extension code.
- Envision Basic – GitHub Repo – It seems that this is a BASIC language originating from UniBasic. This particular derivation coming from Ellucian (previously Datatel).
- Unique aspect of this code is that the syntax is written in a YAML rather than TextMate file.
- Pascal – GitHub Repo – Offers syntax in a YAML file.
- BlitzMax – GitHub Repo