Twig files: hightlighting syntax for html and twig parts

Twig files (.twig) combine branch structure and html code. Im wondering if it is possible to get syntax highlighting for both types of code in the same file.

+4
source share
1 answer

The exact approach depends on how Twig and HTML syntaxes are combined. This is an old issue, and you will find several syntaxes in the default runtime that include HTML syntax, for example. htmldjango, markdown, php.

In addition, a quick twig vim syntax lookup calls this and this . Should solve your problem, right ?!

+2
source

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


All Articles