--- On Fri, 25/9/09, Mark Manning <[email protected]> wrote:
> From: Mark Manning <[email protected]>
> Subject: Re: Hey everyone! Two pathces to syntax files.
> To: [email protected]
> Received: Friday, 25 September, 2009, 11:02 PM
>
> So to put this in to perspective - the PHP code does
> generate HTML code
> (or just data) and that is inserted into the HTML
> code. I'm just using
> the ".htm" extension so Dreamweaver will display
> it properly as well
> and allow me to change things in it. This is why I
> made the change.
> Now the PHP.vim file correctly does the coloration even if
> the source
> code is in an HTML file. Which it wasn't doing
> before for me.
>
If you just wanted to have .htm files treated as PHP files, all you need to do
is add filetype detection in your .vimrc:
autocmd! filetypedetect *.htm setfiletype php
regards,
Peter
__________________________________________________________________________________
Get more done like never before with Yahoo!7 Mail.
Learn more: http://au.overview.mail.yahoo.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---