Starlight
Syntax highlighting of custom languages
To add syntax highlighting for a language that is not supported by Shiki by default, follow these instructions.
Example: Odin
- Find a suitable textmate json object file, such as this.
- save the file to e.g.
src/syntax/odin.tmLanguage.json
- save the file to e.g.
- Edit
astro.config.js
- Add: