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
[Back to original message]
|