You are here: Indent PHP script for VIM version 1.20 released « All PHP « IT news, forums, messages
Indent PHP script for VIM version 1.20 released

Posted by John Wellesz on 11/22/05 01:25

For those who use Vim to program in PHP, the version 1.20 of my indent
script is available.

Changes:

- Line beginning by a single or double quote followed
by a space would cause problems... this was related
to the bug correction of version 1.10 - Thanks to
David F. for finding this (he was lucky).
- Changed the way this script set the formatoptions
setting, now it uses '-=' and '+='
- New option: PHP_autoformatcomment (defaults to 1),
if set to 0 the formatoptions setting will not be
altered.
- When PHP_autoformatcomment is not 0, the 'comments'
setting is set to the type of comments that PHP
supports.

Changes of version 1.19:

- Indentation of '*/' delimiter of '/**/' won't be broken by strings or
'//' comments containing the "/*" character sequence.
- I Forgot to register 'interface' and 'abstract' as block starters so the
'{' after them could be wrongly indented...


You can view its capabilities and download it there:

http://www.vim.org/scripts/script.php?script_id=1120

or there:

http://www.2072productions.com/?to=phpindent.txt


John Wellesz

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация