This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Modularity and (g)vim's sgml or xml syntax highlighing.


Jonathan Marks a écrit :

> Hi Nik, All
>
> This is interesting, Thanks. Is there a way one could achieve this
> functionality in gvim?

I'haven't followed the thread (and some mails are missing) but highlighting XML
files
without <!doctype> with gvim works fine, since the syntax highlighting depends on
the suffix (.sgml, .xml) provided that the .vimrc contains the command "syntax
on".

If it still doesn't work, you can always add in .vimrc:

autocmd FileType sgml,xml so /usr/local/share/vim/vim58/syntax/sgml.vim

BG



----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]