src/Boot/RegisterBladeExtensions.php
protected function allowHighlightTag(BladeCompiler $compiler)
    {
        $compiler->directive('highlight', function ($expression) {
            if (is_null($expression)) {
                $expression = "('php')";
            }
            return "<?php \$__env->startSection{$expression}; ?>";
        });

        $compiler->directive('endhighlight', function () {
            return <<<'HTML'
<?php $last = $__env->stopSection(); echo '<pre><code class="language-', $last, '">', trim($__env->yieldContent($last)), '</code></pre>'; ?>
HTML;
        });
    }
protected function allowHighlightTag(BladeCompiler $compiler)
    {
        $compiler->directive('highlight', function ($expression) {
            if (is_null($expression)) {
                $expression = "('php')";
            }
            return "<?php \$__env->startSection{$expression}; ?>";
        });

        $compiler->directive('endhighlight', function () {
            return <<<'HTML'
<?php $last = $__env->stopSection(); echo '<pre><code class="language-', $last, '">', trim($__env->yieldContent($last)), '</code></pre>'; ?>
HTML;
        });
    }
protected function allowHighlightTag ( BladeCompiler $ compiler ) { $ compiler -> directive ( 'highlight' , function ( $ expression ) { if ( is_null ( $ expression ) ) { $ expression = "('php')" ; } return "<?php \$__env->startSection{$expression}; ?>" ; } ) ; $ compiler -> directive ( 'endhighlight' , function ( ) { return  <<<'HTML'
<?php $last = $__env->stopSection(); echo '<pre><code class="language-', $last, '">', trim($__env->yieldContent($last)), '</code></pre>'; ?>
HTML ; } ) ; }
Add basic syntax highlighting.

This just adds markup that is picked up by a javascript highlighting library.

@param BladeCompiler $compiler
Add basic syntax highlighting .