Both scripts allow you to select a "region" of code, edit it in another window with whatever filetype you want and save it back to its original location.
Both scripts allow you to select a "region" of code, edit it in another window with whatever filetype you want and save it back to its original location.
If you want to just automate the file to the php filetype you can do au FileType html set ft=php
if :set ft?
shows html. Or you can do it by extension like au BufRead,BufNewFile *.htm set ft=php
Also, read this: Different syntax highlighting within regions of a file