sponsor Vim development Vim logo Vim Book Ad

rnc.vim : RELAX NG Compact Syntax

 script karma  Rating 67/28, Downloaded by 4720  Comments, bugs, improvements  Vim wiki

created by
Hans Fugal
 
script type
syntax
 
description
Syntax highlighting for RELAX NG Compact Syntax: http://www.oasis-open.org/committees/relax-ng/compact-20020607.html

This is currently very helpful (a little color goes a long way), but not quite fully mature. I am happy to add the feature you want most, and incrementally it will grow into a mature syntax file.
 
install details
1. Save rnc.vim in ~/.vim/syntax (create the directories if necessary)
2. Edit ~/.vim/filetype.vim, and put the following line in it:

" RELAX NG Compact Syntax
augroup filetypedetect
  au! BufRead,BufNewFile *.rnc setfiletype rnc
augroup END

On windows systems, use your vimfiles directory instead of ~/.vim
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
rnc.vim 1.7 2003-06-21 6.0 Hans Fugal Some context sensitivity in response to feature requests. (hint, hint) This version now handles named parameters, element and attribute names, and better handles assignmentMethod operators. Annotations have their own highlight group although currently it's not highlight-linked to anything.
rnc.vim 1.0 2002-08-16 6.0 Hans Fugal Initial upload
ip used for rating: 142.132.191.50

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github