Wednesday, August 19, 2009

Re: Syntax for C code embedded within another language

On Aug 19, 1:52 pm, CreamyGoodness <mar...@rectangular.com> wrote:
> This worked:
>
>   :syntax include @cBlock syntax/c.vim
>   :syntax region cRegion start="^__C__" end="^__END_C__"
> contains=@cBlock
>

Apparently you have an answer, but you could also take a look at our
tip on this subject, which was featured on the wiki home page just
last month:

http://vim.wikia.com/wiki/Different_syntax_highlighting_within_regions_of_a_file
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

No comments:

Post a Comment