Vim cannot recognize HTML5 tags in PHP

I would like to use HTML5 tags in PHP, but Vim cannot recognize them. I installed this plugin: http://www.vim.org/scripts/script.php?script_id=3236 But this plugin does not support PHP files. What can I do?

+4
source share
2 answers

Vim may not detect that there is HTML inside your PHP file. Have you tried to manually set the file type?

:set ft=html.php

+2
source

Source: https://habr.com/ru/post/1526365/


All Articles