The Curious Coder

Syntax higlighting VSCode

So yesterday I made my first syntax highlighting for a custom language I had to use in school.

It was an interesting thing to learn, especially because I never did it before. Vscode makes use of node to make an extension and you can publish this if you want to. I personally didn't.

For others that like to start learning it, here is a guide to how to start making a syntax highlighter: syntax highlighter. If you never made an extenstion before, look at this first: first extension. It makes use of Yeoman, a pretty easy to use helper to make a basic starting point for ur extension.

If you work on linux, you can test your extension by importing it in your extension folder of vscode. To do this you can just run cp -r <your extension folder> ~/.vscode/extensions.