sponsor Vim development Vim logo Vim Book Ad

BlitzBasic syntax and indentation : Syntax highlighting and indentation for BlitzBasic.

 script karma  Rating 4/1, Downloaded by 502  Comments, bugs, improvements  Vim wiki

created by
Stefan Schindler
 
script type
indent
 
description
These two scripts provide syntax highlighting and automatic code indentation for BlitzBasic code. Supported are the Blitz2D and Blitz3D commandsets.

Please note that there's one little bug: I couldn't determine which regular expression to use for if statements to indent correctly. Therefore you always have to write a 'Then' at the end of an if statement - which looks better anyway, in my opinion. ;-) Whatever, if you know how to change the regex to support both versions (with and without 'Then'), feel free to contact me.
 
install details
Extract the archive to your ~/.vim directory. Add the following lines to your ~/.vimrc to enable filetype recognition:

augroup filetypedetect
au BufNewFile,BufRead *.bb setf bb
augroup END
 

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
bb.tar.gz 1.0 2007-03-25 7.0 Stefan Schindler Initial upload
ip used for rating: 18.188.20.56

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