473,395 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

PHP-correct-Indenting for VIM (version 1.18)


Hello,

I've just released the version 1.18 of my script!
( you can find the original topic about it there:
http://groups.google.fr/group/comp.l...4d1c566472c8fa )
What's new:

- No more problems with Vim 6.3 and UTF-8.
- Opening braces "{" are always indented according to their block
starter.
Instead of:
if( $test
&& $test2 )
{
}

You have:
if( $test
&& $test2 )
{
}

Download:

http://www.vim.org/scripts/download_...hp?src_id=4587

Or (if the link above doesn't work)

http://www.2072productions.com/vim/indent/php.vim
Contact me if you have any problem with this version.
Sep 15 '05 #1
1 1449
Version 1.181 (bug correction):
I Forgot to register 'class' as a block starter so the '{' after a
'class' could be wrongly indented...

Download:

http://www.vim.org/scripts/download_...hp?src_id=4590

Or (if the link above doesn't work)

http://www.2072productions.com/vim/indent/php.vim

Sep 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Phil Powell | last post by:
class NicknameVerifier { function NicknameVerifier() {} function isValid() { if ($fileID) { $content = fread($fileID, HTMLRetriever::MAX_URL_SIZE); fclose($fileID); if ($content)...
0
by: red | last post by:
I use this: header("Content-Type: text/html; charset=utf-8") to allow a server to detect charactar encoding. When I validate the html of webpages on PHP Version 4.3.4, charactar encoding is...
3
by: lawrence | last post by:
I'm writing an installation script for my PHP content management system. I've written the code to be compatible with PHP 4.06 or later. I need to get the PHP version and throw an error message if...
2
by: seajay | last post by:
hi, I am currently running PHP Version 4.2.2 on Red Hat Linux release 9 (Shrike) with Apache/2.0.40 (Red Hat Linux) I would like to upgrade to the latest version of PHP (4.3.10 ?). PHP was...
2
by: lkrubner | last post by:
I'm getting a fatal error that says ctype_alpha(), yet I'm using PHP version 4.3 and according to www.php.net ctype_alpha has been around since version 4.04. Any guesses what might be up?
7
by: rustysmith | last post by:
Anyone know how to check the PHP version that a current file is running on? This would be helpful in the instance where you are trying to make a package that can be distributed publicly for use in...
3
by: ak | last post by:
Q1: I am looking to find/build a table of PHP version verses timezonedb version shipped with it. For example, I think that 5.2.0 updated the timezonedb to the 2006.14 version. Is there a table of...
4
by: Harshpandya | last post by:
HI all, I am working on the Ajax and PHP to make dynamic web page application I have HTML page - in which i am calling two different pages Google and NBC from Drop down menu. OUTPUT WANTED:...
2
by: saikiran.iitkgp | last post by:
Hi All, I have the php version 5.2.2 . When I am using " $im = imagecreate(......); " I am getting the following message "Fatal error: Call to undefined function imagecreate() in...
1
by: cwdjrxyz | last post by:
Using GD imagefilledarc to fill in an arc drawn with php does not work, but imagefilledellipse works fine. The imagefilledarc is supposed to have worked since php version 4.06. I have version...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.