5

Using smarty's tag {block} as an extension of a template, we got sections of code that's it's not highlighted, I think is something related of the context and how vim decides what to highlight according to that,

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

Here is what I mean

enter image description here

Thanks for your help

1
  • Questions about programming tools (including editors and IDEs) are best suited for Stack Overflow. I'm moving this question there for you now. Commented Mar 6, 2012 at 16:05

1 Answer 1

3
syn include     @HTML syntax/html.vim
syn region      htmlSnip start="{block" end="{/block}" contains=@HTML
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.