language()->value(); $code = $block->code()->fromBase64()->value(); if (empty($language) || !in_array($language, $highlighter->listRegisteredLanguages())) { $language = 'plaintext'; } $highlightedCode = $highlighter->highlight($language, $code)->value; // Handle line numbering if (option('johannschopplich.highlighter.line-numbering', false)) { $lines = preg_split('/\R/', $highlightedCode); $lineClass = option('johannschopplich.highlighter.line-numbering-class', 'hljs-code-line'); $highlightedCode = '' . implode("\n", $lines) . ''; } ?>
= $highlightedCode ?>