467,169 Members | 972 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,169 developers. It's quick & easy.

Indent PHP script for VIM version 1.21 released

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

Changes:

- 'try' and 'catch' were not registered as block starters so the '{'
after a 'try' or 'catch' could be wrongly indented...
(thanks to Gert Muller for finding this issue)

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
Jan 8 '06 #1
  • viewed: 1393
Share:
1 Reply
Hello,

Here is a new version of my indent script for PHP with some improvements
and some bug fixes :)

Additionally, there is now a newsletter where you can subscribe to be
alerted when a new version is released: (No other kind of message will be
broadcasted)

http://www.2072productions.com/?to=p...newsletter.php
Changes in version 1.23:

- PHPDoc comments are now indented according to the surrounding code.
- This is also true for '/* */' multi-line comments when the second line
begins by a '*'.
- Single line '/* */' comments are also indented.
- <script> html tags are now correctly indented the same way their content
is.
- <?.*?> (on a single line) PHP declarations are now always considered as
non-PHP code and let untouched.
You can view its capabilities and download it there:

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

Or there (colorful version):

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

Enjoy :-)

John Wellesz
Jan 15 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by John Wellesz | last post: by
2 posts views Thread by cawoodm@gmail.com | last post: by
reply views Thread by saabi | last post: by
21 posts views Thread by Bogdan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.