Changes

Jump to navigation Jump to search
751 bytes removed ,  13:06, 30 October 2016
no edit summary
=== Integration with other languages ===
Lua syntax highlighting is used inside <tt>\directlua{}</tt>, and <tt>\ctxlua{}</tt> commands,and inside <tt>\startluacode… \stopluacode</tt>. XML highlighting is used inside <tt>\startXML… \stopXML</tt>.
You may embed other filetypes. Just define <tt>g:context_include</tt> (or <tt>b:context_include</tt> for
define:
let g:context_include = { 'cpp' : 'CPP' }
The key is the name of the filetype and the corresponding value if is name of the command.
nmap <F8> :make test<CR>
 
== MetaPost extension ==
 
Should highlight the syntax between <code>btex/verbatimtex</code> ... <code>etex</code> as TeX.
 
This doesn't work 100% (problems with commands inside comments): If anyone knows how to repair that, please do so. It would be nice if this would have landed in the official metapost syntax highlighting script for vim one day.
 
unlet b:current_syntax
syn include @texTop syntax/tex.vim
" MetaPost has TeX inserts for typeset labels
" verbatimtex, btex, and etex will be treated as keywords
syn match mpTeXbegin "\(verbatimtex\|btex\)"
syn match mpTeXend "etex"
syn region mpTeXinsert start="\(verbatimtex\|btex\)"hs=e+1 end="etex"he=s-1 \
contains=@texTop,mpTeXbegin,mpTeXend containedin=ALL keepend
{{Installation navbox}}
[[Category:Text Editors]]
134

edits

Navigation menu