This extension is based on CodeBlockLowlight. Most of the code in this repository is taken from there.
Unfortunately CodeBlockLowlight is based on LowLight and Highlight.js, Highlight.js supports many languages but doesn't support many useful syntax. For example: JSX, TSX, MDX.
The list of supported Prism.js languages can be found here: https://prismjs.com/#supported-languages
const editor = useEditor({
extensions: [
Document,
Paragraph,
Text,
CodeBlock,
CodeBlockPrism.configure({
defaultLanguage: 'jsx',
}),
],
content: ``,
});
You can define styles via CSS. There are already ready-made themes, for example: OneDark