So apparently the new WP post editing system, Gutenberg, has a code block:
Go back to the list of Blocks Code block lets you add and display code snippets for others to view. Code block example: To add the Code bloc
So it behaves like basic Markdown code display, but it doesn’t do syntax highlighting. That could be added pretty easily via PrismJS (a project started by the fantastic Lea Verou).
the core is just 2k minified and gzipped, and each language you want to support adds 300-500 bytes.
In theory the code we’d want to see support for:
HTML
CSS
JS
Sass / SCSS
C++ / C#
SVG
Python
Java
Ruby
PHP
Swift (maybe Objective-C too?)
SQL
TypeScript
so 2k for core js + maybe 15x 0.5k = about 9.5k total, which could be cached or lazy-loaded or both?
















