Hey there!
When writing technical articles, having a good code highlighter to present code snippets is mandatory. I tried a few of them but only recently became fully convinced by a new code highlighter: Expressive Code.
Expressive Code is based on Shiki and extends its capabilities. Unlike other code highlighters, like Prism, Shiki is meant to run at build-time or during server-side rendering to ship zero JavaScript to the browser. Shiki and Expressive Code accept any VS Code theme as a valid theme configuration.
Expressive Code has native Astro support. It is enabled by default on Starlight, the template for documentation websites made by Astro's team. Expressive Code also provides a remark plugin for use in any other environment.