Easily post syntax-highlighted code to your WordPress site without having to modify the code at all. As seen on WordPress.com.
A major rewrite is currently occurring in the 4.0 branch. Go there if you want to see the current work in progress code.
When making changes in the blocks/
folder,
- Make sure you have WP-CLI installed.
- Run
npm run dev
in a terminal to automatically re-transpileblocks/index.min.js
when source files change. - Run
npm run build
to transpile and minifyblocks/index.min.js
for distribution, as well as automatically update thelocatlizations/_syntaxhighlighter-template.po
.