-
Copy the contents of the
blade.jsonfile into a newresources/syntax/blade.jsonfile, 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.jsonfile.