sponsor Vim development Vim logo Vim Book Ad

liquid.vim : Vim syntax file for Liquid Templates

 script karma  Rating 4/7, Downloaded by 1191  Comments, bugs, improvements  Vim wiki

created by
Eugen Minciu
 
script type
syntax
 
description
This highlights Liquid Template Files ( http://home.leetsoft.com/liquid )
It recognizes tags, outputs and comments as well as highlighting
Ruby instance variables.

It sets the file type to html so that it highlights html as well. If this shouldn't be automatic for some reason, let me know how it should be and I'll change it.

Enjoy ;)
 
install details
Copy this script to ~/.vim/syntax under *NIX systems (If someone could tell me what the directory is for Windows users, I'd appreciate it and add it here as well).

Add this line to your ~/.vim/filetype.vim:

au BufNewFile,BufRead *.liquid setf liquid
 

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
liquid.vim 2 2006-08-03 6.0 Eugen Minciu This version doesn't set the filetype to HTML anymore.
It now works correctly with Tim Pope's SVN version of rails.vim which will support highlighting Liquid through this file.
The identifier names where changed to start with a lowercase letter (so omnicompletion should now work)
liquid.vim 1 2006-08-02 6.0 Eugen Minciu Initial upload
ip used for rating: 18.191.171.235

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