Notion code block language support
Notion code blocks allow you to specify a language for the code inside the code block. Cloudpress now uses the language you set in your Notion code blocks when exporting to the various CMSs. The support level depends on the target CMS, as not all CMSs support code block languages completely. More details are provided in the table below.
CMS | Level of support |
Contentful Rich Text | π« Not supported since Contentful Rich Text fields do not support code blocks at all |
Contentful Long Text (markdown) | β Supported |
Kentico | π« Not supported |
Sanity | β Supported. The languages are limited by the ones supported by the Sanity code block. |
Webflow | β
Supported. Cloudpress adds the class hljs language-<language> to the code blocks, so you can enable sytax highlighting by adding Highlight.js to your site. |
WordPress Gutenberg | π« Not supported. The standard Gutenberg code block does not support code languages. We are investigating supporting 3rd party blocks. |
WordPress Classic | β
Supported. Cloudpress adds the class hljs language-<language> to the code blocks, so you can enable sytax highlighting by adding Highlight.js to your site. |