-
Copy the contents of the
blade.json
file into a newresources/syntax/blade.json
file, or wherever you want to place it. -
Add the following code snippet into your application before using
highlight.php
:
\Highlight\Highlighter::registerLanguage('blade', resource_path('syntax/blade.json'), true);
You should change the 2nd argument according to where you created your
blade.json
file.