Vim sets highlighting for specific sections of code

Using smarty tag {block} as an extension of the template, we got sections of code that it didn’t highlight, I think it’s related to the context and how vim decides what to highlight according to this,

So the question is, is there a way to tell vim to highlight a section of code with a specific color scheme?

Here is what i mean

enter image description here

thanks for the help

+5
source share
1 answer
syn include     @HTML syntax/html.vim
syn region      htmlSnip start="{block" end="{/block}" contains=@HTML
+3
source

All Articles