On Tue, Feb 23, 2010 at 4:13 PM, Manfred Lotz <[email protected]> wrote: > Is there a possiblity to have something like a minor mode in the > following sense? > > I have a documentation in a .txt file (filetype txt) and > inside I like to have some code, e.g. OCaml or Python and I like to > have those parts syntax highlighted. > > > Is this possible?
Yes, it it possible. syntax include @python $VIMRUNTIME/syntax/python.vim syntax region pythonCode start="Python Code:" end="The End" contai...@python You can change "Python Code:" and "The End" into whatever you use to delimit the code region. See :help syn-include -- You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php
