Vim: Syntax highlight a file without an extension

I have a file without an extension that I wanted Vim to syntax highlight. Without a file extension Vim is confused about what schema to use to highlight. You can force a specific file type for syntax highlight with a modeline.

// vim: filetype=php
Leave A Reply
All content licensed under the Creative Commons License