Skip to content

Commit

Permalink
using our custom php.json highlight.php language spec
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed Jul 5, 2019
1 parent 93c1941 commit ab71c81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Renderers/CodeNodeRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public function render(): string

if ('text' !== $language) {
$highLighter = new Highlighter();
Highlighter::registerLanguage('php', __DIR__.'/../Templates/highlight.php/pjp.json', true);
$code = $highLighter->highlight(self::LANGUAGES_MAPPING[$language] ?? $language, $code)->value;
}

Expand Down

0 comments on commit ab71c81

Please sign in to comment.