@code and @@codeblock entities. The code and codeblock entities render highlighted code blocks. @@codeblock
// Syntax Guessing
some.code = 3
@@codeblock js
// Set the language to JS
var a = true
@@codeblock nohighlight
// Don't apply highlighting
some code without highlighting// Syntax Guessing
some.code = 3// Set the language to JS
var a = true// Don't apply highlighting
some code without highlighting@code[some.code = 3] @code[var a = true]some.code = 3 var a = truerequire('quantum-code-highlight').
For information about different versions, see the Changelog quantum-html quantum-html to define the entities that can be rendered. @@codeblock entity but can be used within custom entity transforms if required. stylesheetAsset in the transform or the highlight colours will not be applied.