0

there's no highlighting php into a .blade.php file using web-mode.

I just installed from MELPA and added this to my .emacs file:

(require 'web-mode)
(add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.php\\'" . web-mode))

(setq web-mode-engines-alist
      '(("php"    . "\\.phtml\\'")
        ("blade"  . "\\.blade\\.php\\."))

No php highlighting in .blade.php using web-mode

1 Answer 1

0

You've told it this:

  '(("php"    . "\\.phtml\\'")
    ("blade"  . "\\.blade\\.php\\."))

One of those things is not like the other.

Try opening a filename containing .blade.php. anywhere.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.