Open ShawnMcCool opened 2 years ago
echo $this->highlighter ->highlight( 'php', <<<'CODE' <?php $high = $dog->cat(); $dog = new Cat(); CODE ) ->value;
This code echos:
<span class="hljs-meta"><?php</span> $high = $dog->cat(); $dog = <span class="hljs-keyword">new</span> Cat();
Is there something that I'm doing wrong that prevents.. for example.. the class name to be wrapped in a span? Only the 'new' keyword and '<?php' meta seems to be specified.
This code echos:
Is there something that I'm doing wrong that prevents.. for example.. the class name to be wrapped in a span? Only the 'new' keyword and '<?php' meta seems to be specified.