sponsor Vim development Vim logo Vim Book Ad

Jifty syntax : syntax file for jifty web framework

 script karma  Rating 2/2, Downloaded by 1790  Comments, bugs, improvements  Vim wiki

created by
Yo-An Lin
 
script type
syntax
 
description
syntax support of jifty web framework ( http://search.cpan.org/~sartak/Jifty-0.80408/ )

  * template syntax , folding
  * model / action schema syntax , folding
  * schema keywords
  * functions keywords
  * syntax highlight for sql, js , html embedded hereDoc

to turn on the syntax folding to fold template and schema columns:

  set fdm=syntax

options: you can choose what you want to fold, append following lines to your .vimrc

   let jifty_fold_schema = 1
   let jifty_fold_schema_column = 1
   let jifty_fold_template = 1
   let jifty_fold_tags = 1
   let jifty_fold_dispatcher = 1

Supports sql,javascript,html embedded hereDoc string:
  you can add prefix to the identifier like SQL.. , HTML... , JS...
  e.g.

  $sql =<<SQL123
    select * from books
SQL123
  
  or

  $html =<<HTML123
  <html>
      <h1>Jifty</h1>
  </html>
HTML123


patches are welcome.  :)

cornelius.howl+vim {at} gmail.com
 
install details
Download the tarball to your home , then untar it

tar xvf jifty.tar.gz

this will extract files to

  ~/.vim/after/syntax/perl/jifty.vim
  ~/.vim/syntax/perl.vim

make sure that your files wont be overwrited.
 

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
jifty.tar.gz 0.22 2009-01-27 6.0 Yo-An Lin highlight quoted identifier of heredoc.
jifty.tar.gz 0.21 2009-01-25 6.0 Yo-An Lin * provide dispatcher folding
* fix html embedded heredoc syntax highlight
jifty.tar.gz 0.2 2009-01-25 6.0 Yo-An Lin * let heredoc supports sql, javascript, html syntax.
* fold div , table , form ..tags
* provide options for folding , you can choose what you want to fold
   let jifty_fold_schema = 1
   let jifty_fold_schema_column = 1
   let jifty_fold_template = 1
   let jifty_fold_tags = 1
* move jifty.vim to ~/.vim/after/syntax/perl/jifty.vim , not
       ~/.vim/after/syntax/jifty.vim
jifty.vim 0.1 2009-01-25 7.0 Yo-An Lin fix syntax error.
ip used for rating: 18.97.9.175

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