Bram Moolenaar wrote:
> 
> Dave Hodder wrote:
> 
>> Vim presently associates *.phtml files with PHP/FI (a.k.a. PHP 2) syntax 
>> highlighting, although realistically I doubt anybody uses it[1][2]. 
>> Instead, the "php" filetype handles PHP versions 3 and above.
>>
>> Increasingly, however, I believe the ".phtml" extension is used by PHP 
>> 5-based web applications.  For example, apps based on the Zend Framework 
>> typically use it for the "view" part of front controller MVC.
>>
>> I have the following suggestion:
>>
>>    1. Remove syntax/phtml.vim.
>>
>>    2. Change *.phtml association in filetype.vim to associate with php
>>       filetype instead.
>>
>>    3. Amend synmenu.vim so there's only one PHP menu item, just called
>>       "PHP".  This might also be a good time to update "Cold Fusion" to
>>       "ColdFusion" (no space in name).
>>
>> Many Thanks,
>>
>> Dave
>>
>> [1] It was released in 1995, the same time we were all being wowed by
>>      Netscape Navigator 1.1!  :o)  PHP 3 superseded it in 1997.
>> [2] 
>> http://www.nexen.net/chiffres_cles/phpversion/17377-php_statistics_for_july_2007.php#versions
> 
> 
> I don't know about the use of PHP in .phtml files.  I thought they were
> always called *.php.  Opinions?

I've seen .phtml used for php3 and php4.
In addition, googling a bit revealed that
the common use of .phtml _is_ for PHP.
I'd vote for merging .phtml with .php

> 
> I don't delete an existing syntax file unless it is completely useless.
> 


-- 
http://ilya-sher.org/

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui