sponsor Vim development Vim logo Vim Book Ad

xbl.vim : Syntax highlighting for Extensible Binding Language (XBL)

 script karma  Rating 26/8, Downloaded by 941  Comments, bugs, improvements  Vim wiki

created by
Kurt Brown
 
script type
syntax
 
description
Syntax highlighting for Extensible Binding Language (XBL). The main purpose of the script is to syntax highlight javascript code contained in CDATA blocks.

The script is a hack; my understanding of VIM scripting is almost nil. I look forward to improvements made by anyone.

To have vim detect the file type from files with the .xbl extension,
just add the following two lines to the "filetype.vim" file in the
directory that contains the "syntax" directory:

" XBL
au BufNewFile,BufRead *.xbl   setf xbl

To have xbl syntax coloration appear in the syntax drop-down menu, just
add the line:

an 50.120.240 &Syntax.WXYZ.XBL :cal SetSyn("xbl")<CR>

to the "synmenu.vim" file (the value 240 in 50.120.240 might differ
according to what is already in your own file).

-- Thanks to Xavier Grosjean <xavcap AT c-est-simple DOT com> for
information on file type detection and menu updating.

Use ":set syntax=xbl" to turn it on for non-xbl files after the file is opened.
 
install details
Just copy the file, xbl.vim, to your syntax directory.
See http://www.x2ii.info for latest version.
 

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
xbl.vim 1.1 2006-09-25 6.0 Kurt Brown Updated contact info.
xbl.vim 1.0 2004-12-09 6.0 Kurt Brown Initial upload
ip used for rating: 18.217.220.114

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