On Thu, 26 Oct 2006, David S. wrote:
> Hugh Sasse <hgs <at> dmu.ac.uk> writes:
>
> > So, we run into a problem: how does one syntax highlight mixed
> > language code?
>
> This works well for me, but needs delimters to indicate the appropriate
> syntax.
>
> http://www.vim.org/tips/tip.php?tip_id=856
So with reference to that, :he :syn-include , I think get
:syntax include @Cstuff <sfile>syntax/c.vim
:syntax region quotedC start="%Q{" end="}" [EMAIL PROTECTED]
so if I stick that in my ~/.vim/after/ruby.vim I think that
will allow me to have code like
puts %Q{int main(int argc, char *argv[])}
and it should do what I want. I'll give that a go.
>
> So in my Python code, for example, I might have:
> ...
> #{{{sql
> bar_sql = """
> Select foo, baz
> >From bar
> """
> #sql}}}
>
> cur.execute(bar_sql)
> ...
>
> Peace,
> David S.
>
Thank you,
Hugh
>
>