" DocBook related stuff " Language: DocBook XML " Maintainer: Etienne Kneuss " Last Change: Sam, 28 Apr 2007 syn include @xmlPhp syntax/php.vim if exists("b:current_syntax") unlet b:current_syntax endif runtime syntax/xml.vim " PHP code inside CDATA " highlight php examples using php syn region xmlExamplePhpCdata \ start=++ \ contained \ contains=@xmlPhp,xmlCdataStart,xmlCdataEnd,@xmlCdataHook,@Spell \ keepend \ extend " programlisting tag syn region xmlProgramListingPHP start=++ keepend end="" contains=xmlTag,xmlEndTag,xmlRegion,xmlComment,xmlEntity,xmlprocessing,xmlExamplePhpCdata " Fold by refsect1 syn region xmlRefSect1 start='' keepend end="" contains=xmlTag,xmlEndTag,xmlRegion,xmlComment,xmlEntity,xmlprocessing,xmlExamplePhpCdata fold " Enable indenting of xml filetype plugin indent on " doc book uses 1 space set sw=1 " Function definition section imap @fd &reftitle.description;<++><++><++><++>7k^6li " Function definition parameter normal imap @fpm <++><++>k$47hi " Function definition parameter reference imap @frpm <++><++>k$64hi " Function definition parameter optionnal imap @fopm <++><++>k$47hi " Function definition parameter optionnal + reference imap @forpm <++><++>k$64hi " Parameters section imap @pms &reftitle.parameters;<++>4k$a " Variable list entry imap @vle <++><++>7k$18hi " Return values imap @ret &reftitle.returnvalues;<++>3k$a " Errors imap @err &reftitle.errors;<++>3k$a " Unicode imap @uni &reftitle.unicode;<++>3k$a " Changelog imap @chlog &reftitle.changelog;&Version;&Description;<++>6k$a " Row with two cols imap @r2 <++><++>3k$7hi imap @r3 <++><++><++>4k$7hi " Examples imap @ex <++><++>&example.outputs.similar;<++><++>12k$7hi imap @rex &reftitle.examples;<++><++>&example.outputs.similar;<++><++>14k$7hi