I want to enable html snippets for php files. The Ultisnips manual said what I need to do is put extends html command at the beginning of the php.snippets file. But it doesn't work. HTML snippets still aren't showing up. How do I extend it properly?

2 Answers 2


It's difficult to point out where your problem is, since you didn't really describe what exactly you did; but this is how I added a custom PHP snippet file:

See :help UltiSnips-adding-snippets for more information.


You did the opposite. You should have written extends php in your html.snippets file. Then you can open a myfile.php and start using html snippets.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.