Render highlight.php with line numbers

Here's a demo of rendering the result of highlight.php with line numbers. With the HighlightUtilities\splitCodeIntoArray() function.

highlight("php", $snippet); $lines = HighlightUtilities\splitCodeIntoArray($result->value); ?> $line): ?>