sponsor Vim development Vim logo Vim Book Ad

Enhanced Javascript syntax : Improved Highlight for Ajax, DOM and Browser Objects, Methods and Properties

 script karma  Rating 42/19, Downloaded by 871    Comments, bugs, improvements  Vim wiki

created by
Jose Elera Campana
 
script type
syntax
 
description
This file is a fork of this vimscript#1491 and the stock vim javascript syntax file.

This version of this file features the following text highlights:
Parenthesis, curly and regular brackets.
The semicolon or comma at the end of line.
Browser, DOM and "Ajax" keywords like objects, methods, properties and others.
Operation, comparison and logical symbols (=,==,===,!=,etc.).

Screenshots:
http://imgur.com/a/sn8fz

Follow all the changes, also to contribute or report bugs.
https://github.com/jelera/vim-javascript-syntax
 
install details
just copy this file in your ~/.vim/syntax

For Pathogen/Vundle users
git clone https://github.com/jelera/vim-javascript-syntax ~/.vim/bundle
 

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
javascript.vim 0.6 2012-02-23 7.0 Jose Elera Campana ADDED:
- Support for folding
MODIFIED:
- Most of the code is folded for easier navigation and readability
- Highlight is "more" uniform
javascript.vim 0.5 2012-02-08 7.0 Jose Elera Campana Now it highlights parens, brackets. Symbols like =,==,===,!=,<,> ... etc. Added more keywords. The semicolon or comma at the EOL is highlighted too.
javascript.vim 0.4 2012-02-05 7.0 Jose Elera Campana In this release, "customization of colorscheme" is no longer required. All the new highlights introduced with this syntax have HiLinks with preset keywords. Tested with several colorschemes.
javascript.vim 0.3 2012-01-17 7.0 Jose Elera Campana Some cleanup, added highlight links to the new keywords
ip used for rating: 50.17.109.248

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.
   
SourceForge.net Logo