-
-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Labels
Description
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.