For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > January 2006 > Indent PHP script for VIM version 1.23 released









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Indent PHP script for VIM version 1.23 released
John Wellesz

2006-01-15, 3:56 am

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=...-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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com