sponsor Vim development Vim logo Vim Book Ad

Syntax for XUL : Highlighting for XML User interface Language.

 script karma  Rating 92/28, Downloaded by 1586  Comments, bugs, improvements  Vim wiki

created by
Miguel Rodriguez
 
script type
syntax
 
description
Syntax highlighting for the XML User interface Language (XUL) a.k.a. eXtensible User interface Language.  Based on Nicolai Nespor's xul.vim v0.5.  Follows XUL's reference at http://developer.mozilla.org/en/docs/XUL_Reference.

Also available at http://bioinf.ibun.unal.edu.co/~miguel/?id=5
 
install details
Just place file into syntax folder.  To tell vim detect *.xul files automatically, just put the following line into filetype.vim (into the vim configuration dir) before the XML line:
au BufNewFile,BufRead *.xul  setf xul
If you want to disable the attributes syntax, put let nohl_xul_atts = 1 in your ./[g]vim.
<script/> is not the better way, it's better <script></script>; but, if you want <script/> form support, just place into your ./[g]vim file: let xul_noclose_script = 1.  If you do so, it's possible to damage the <script></script> performance, in the case you use any "/" char into the <script>, for example: <script type="application/x-javascript">.  It's up to you.
 

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
xul.vim 0.35 2007-08-06 7.0 Miguel Rodriguez <script /> form supported.  Identified and fixed some bugs.
xul.vim 0.2 2007-07-08 7.0 Miguel Rodriguez <script> tag completely highlighted
xul.vim 0.1 2007-06-29 7.0 Miguel Rodriguez Initial upload
ip used for rating: 34.203.221.104

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