Xhtheme Code Block is a plugin for adding code blocks to your WordPress site, supporting syntax highlighting and adapting to the theme’s light and dark mode switching.
Alpine.js:
Prism.js:
The source code for build/index.js can be found in the block-code/src directory.